Vulnerabilities / AI Engine / WPSEC-2026-4493

AI Engine <= 3.9.7 - Authenticated (Contributor+) Stored Cross-Site Scripting via Forged Chatbot Container 'startSentence' Parameter

Medium 5.4 CWE-79Fixed in 3.9.8
ID
WPSEC-2026-4493
Plugin
AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini (ai-engine)
Affected
all versions before 3.9.8
Remediation
Update to 3.9.8 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Weakness
CWE-79
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-12-03
Attack surface
AI Engine on WPSec AttackSurface
Fix released
Published

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.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0