AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini <= 3.9.4 - Authenticated (Contributor+) Stored Cross-Site Scripting via Forged Chatbot Container Attributes

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

Description

The AI Engine plugin for WordPress is vulnerable to Stored Cross-Site Scripting via forged chatbot containers in all versions up to, and including, 3.9.4. The cause is that the front-end chatbot script trusted the data-* attributes of any element with the mwai-chatbot-container class, and its HTML sanitization was insufficient. This makes it possible for authenticated attackers, with contributor-level access and above, to place a crafted container element in post content. That element injects chatbot configuration, actions and HTML which execute arbitrary web scripts whenever a user accesses the injected page.

References

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

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

License: CC BY 4.0