{"schemaVersion":4,"id":"CVE-2026-131589","aliases":[],"status":"published","duplicateOf":null,"title":"AI Engine <= 3.9.4 - Authenticated (Editor+) Limited Arbitrary File Upload via 'url' Parameter","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.","dates":{"published":"2026-11-26T09:33:20.315Z","modified":"2026-12-01T19:37:54.724Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.2,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.2,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0065,"percentile":0.52589,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-27T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0065,"percentile":0.52589}],"last30":[{"date":"2026-11-27T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.0065,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.0065,"percentile":0.52589}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-434","name":"Unrestricted Upload of File with Dangerous Type","description":"The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/434.html"}],"affected":[{"vendor":"tigroumeow","product":"ai engine – mcp server & ai chatbot for wordpress, with claude, chatgpt & gemini","name":"AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini","label":"ai engine – mcp server & ai chatbot for wordpress, with claude, chatgpt & gemini","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 3.9.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"3.9.4","endInclusive":true}}],"versionsText":"≤ 3.9.4","eol":null,"hubHref":"/vendor/tigroumeow/ai_engine_-_mcp_server__ai_chatbot_for_wordpress_with_claude_chatgpt__gemini"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.wordfence.com/threat-intel/vulnerabilities/id/02f6619b-eb5e-42ba-b804-9ac2b2dee482?source=cve","label":"www.wordfence.com/threat-intel/vulnerabilities/id/02f6619b-eb5e-42ba-b804-9ac2b2dee482?source=cve","hostname":"www.wordfence.com","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/services/image.php#L233","label":"plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/services/image.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/services/image.php#L203","label":"plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/services/image.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/services/image.php#L140","label":"plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/services/image.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/rest.php#L1210","label":"plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/rest.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/rest.php#L326","label":"plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/rest.php","hostname":"plugins.trac.wordpress.org","tags":[]},{"url":"https://plugins.trac.wordpress.org/changeset?old_path=/ai-engine/tags/3.9.4/classes/services/image.php&new_path=/ai-engine/tags/3.9.5/classes/services/image.php","label":"plugins.trac.wordpress.org/changeset","hostname":"plugins.trac.wordpress.org","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-26T09:33:20.315Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-01T19:37:54.724Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 7.2, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,72],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.0065,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-01T19:37:54.724Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-12-01T19:37:54.724Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":7.2,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-30T11:39:37.763Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.0065,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T08:03:29.184Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T08:03:29.748Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T08:03:29.946Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T08:01:00.622Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T08:03:27.537Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T08:03:26.585Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T08:54:22.001Z","stale":false,"partial":false}}