# 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

- **ID:** WPSEC-2026-3716
- **Plugin:** AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini (`ai-engine`), https://wordpress.org/plugins/ai-engine/
- **Affected versions:** all versions before 3.9.5
- **Fixed in:** 3.9.5 (Update to 3.9.5 or later.)
- **Severity:** Medium 6.4 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N)
- **Weakness:** CWE-79
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-11-22)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/ai-engine
- **Fix released:** 2026-11-22
- **Published:** 2026-11-23
- **URL:** https://wpsec.com/vuln/WPSEC-2026-3716/

## 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

- https://wpsec.com/vuln/WPSEC-2026-3716/
- https://plugins.svn.wordpress.org/ai-engine/tags/3.9.5/
- https://wordpress.org/plugins/ai-engine/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-3716/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
