CVE-2026-131589 — WordPress
HIGHCVE-2026-131589 is a high-severity (CVSS 7.2) Unrestricted File Upload vulnerability. The records list no fixed version yet; check the vendor advisory below and apply the mitigations in the meantime.
The AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini plugin for WordPress is vulnerable to Limited Arbitrary File Upload in all versions up to, and including,…
Description
The AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini plugin for WordPress is vulnerable to Limited Arbitrary File Upload in all versions up to, and including, 3.9.4 via the url parameter of the /mwai/v1/helpers/create_image REST API endpoint. The vulnerability exists because the add_image_from_url() function applies the get_allowed_mime_types() extension allow-list only on the custom-filename branch; when the request omits a filename value, the empty-filename branch derives the stored file's extension directly from the URL basename via sanitize_file_name() without any MIME or extension validation, then writes the downloaded response body verbatim to the WordPress uploads directory via file_put_contents(). This makes it possible for authenticated attackers with Editor-level access and above to place attacker-controlled HTML, SVG, or JavaScript files into wp-content/uploads/YYYY/MM/ under an attacker-chosen extension, enabling stored cross-site scripting against any administrator who opens the resulting attachment URL. The download routine accepts any HTTP response whose Content-Type header begins with image/, a value freely controlled by the attacker-owned origin server, meaning the written content need not be a valid image.
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Remediation status
The records we use list no fixed release for CVE-2026-131589. Check the upstream advisory for a patched version, and apply the exposure-reduction steps below in the meantime.
Mitigate without a patch
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Frequently Asked Questions
Is CVE-2026-131589 in your dependencies?
Find it across your dependency tree, including transitive dependencies.