# AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini <= 3.9.4 - Authenticated (Editor+) Arbitrary File Upload via Image URL Import

- **ID:** WPSEC-2026-3715
- **Plugin:** AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini (`ai-engine`), https://wordpress.org/plugins/ai-engine/
- **Affected versions:** from 3.1.2 before 3.9.5
- **Fixed in:** 3.9.5 (Update to 3.9.5 or later.)
- **Severity:** High 7.2 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H)
- **Weakness:** CWE-434
- **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-3715/

## Description

The AI Engine plugin for WordPress is vulnerable to arbitrary file uploads via the 'url' parameter of the /mwai/v1/helpers/create_image REST endpoint in versions 3.1.2 up to, and including, 3.9.4, due to missing file type validation in the add_image_from_url function. When no custom filename is given, the file is written to the uploads folder under the name taken from the URL, whatever its extension, and the only check on the content is the Content-Type header returned by the remote server. This makes it possible for authenticated attackers, with editor-level access and above, to upload arbitrary files such as PHP scripts to the server, which may make remote code execution possible.

## References

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

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.
