{
 "id": "WPSEC-2026-4493",
 "url": "https://wpsec.com/vuln/WPSEC-2026-4493/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-4493/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-4493/index.md",
 "osv_url": "https://wpsec.com/vuln/osv/WPSEC-2026-4493.json",
 "title": "AI Engine <= 3.9.7 - Authenticated (Contributor+) Stored Cross-Site Scripting via Forged Chatbot Container 'startSentence' Parameter",
 "description": "The AI Engine plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the 'startSentence' value of a hand-written chatbot container in all versions up to, and including, 3.9.7. The cause is that the front-end chatbot script read the start sentence from the data-params attribute of an element with the mwai-chatbot-container class that the server did not print, and rendered it as markdown with raw HTML, while other HTML parameters from such containers were already reduced to plain text. 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 and interacts with the injected chatbot greeting.",
 "plugin": {
  "slug": "ai-engine",
  "name": "AI Engine",
  "full_name": "AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini",
  "wordpress_org": "https://wordpress.org/plugins/ai-engine/",
  "advisories_url": "https://wpsec.com/vuln/plugin/ai-engine/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/ai-engine"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 5.4,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "3.9.8",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 3.9.8"
  ]
 },
 "introduced_in": null,
 "fixed_in": "3.9.8",
 "remediation": "Update to 3.9.8 or later.",
 "fix_released": "2026-12-01T09:06:40+00:00",
 "published": "2026-12-03T12:50:55+00:00",
 "updated": "2026-12-03T12:33:40.056989+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-4493/",
  "https://plugins.svn.wordpress.org/ai-engine/tags/3.9.8/",
  "https://wordpress.org/plugins/ai-engine/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/ai-engine",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-12-03"
 }
}