AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini <= 3.9.5 - Unauthenticated Arbitrary Shortcode Execution via Image Metadata in Chatbot File Uploads

Medium 5.6 CWE-94Fixed in 3.9.6
ID
WPSEC-2026-3976
Plugin
AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini (ai-engine)
Affected
from 2.1.3 before 3.9.6
Remediation
Update to 3.9.6 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Weakness
CWE-94
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-26
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 Shortcode Execution via the chatbot and form file upload endpoint (/mwai-ui/v1/files/upload) in all versions up to, and including, 3.9.5, due to uploaded files being sideloaded into the Media Library with media_handle_sideload() without explicit post data. WordPress then fills the attachment title and description from IPTC/EXIF metadata embedded in the image, which the attacker controls, and the description is rendered through the_content filter, which runs shortcodes (for example in the public media REST endpoint). This makes it possible for unauthenticated attackers to run arbitrary shortcodes. The Local Upload option must be set to the Media Library, which is not the default.

References

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

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

License: CC BY 4.0