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)
- Affected
- from 3.1.2 before 3.9.5
- Remediation
- Update to 3.9.5 or later.
- CVSS 3.1
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-434
- 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 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/
Published by WPSec. Provided as is, without warranty. Corrections: contact us.
This advisory as JSON or Markdown · All advisories: JSON, RSS