# AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini <= 3.9.4 - Authenticated (Subscriber+) Stored Cross-Site Scripting via Public API Media Library File Uploads

- **ID:** WPSEC-2026-3714
- **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 4.4 (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/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-3714/

## Description

The AI Engine plugin for WordPress is vulnerable to Stored Cross-Site Scripting via the Public API simpleFileUpload endpoint in all versions up to, and including, 3.9.4, due to missing file content validation when files are saved with target=library. The plugin relied on WordPress's type check, which accepts markup under text extensions such as .rtx, while the content check used for other uploads was skipped. This makes it possible for authenticated attackers, with subscriber-level access and above, to store files in the uploads folder that execute arbitrary web scripts when a user opens them. The Public API must be enabled, and the web server must serve the file in a way the browser renders as HTML.

## References

- https://wpsec.com/vuln/WPSEC-2026-3714/
- 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-3714/

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.
