{
 "id": "WPSEC-2026-3047",
 "url": "https://wpsec.com/vuln/WPSEC-2026-3047/",
 "json_url": "https://wpsec.com/vuln/WPSEC-2026-3047/advisory.json",
 "markdown_url": "https://wpsec.com/vuln/WPSEC-2026-3047/index.md",
 "title": "AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini <= 3.9.3 - Unauthenticated Stored Cross-Site Scripting via File Upload",
 "description": "The AI Engine plugin for WordPress is vulnerable to Stored Cross-Site Scripting via file uploads (the chatbot and AI Forms upload endpoint /mwai-ui/v1/files/upload) in all versions up to, and including, 3.9.3, due to insufficient validation of uploaded file types and contents. The endpoint is open to visitors through a publicly exposed nonce and accepts any file type WordPress allows, including text-based types such as .rtx (text/richtext) that many web servers send without a Content-Type, so a file starting with HTML markup is rendered as a web page by browsers. This makes it possible for unauthenticated attackers to store files in the public uploads folder that run arbitrary web scripts when a user opens them.",
 "plugin": {
  "slug": "ai-engine",
  "name": "AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini",
  "full_name": "AI Engine – MCP Server & AI Chatbot for WordPress, with Claude, ChatGPT & Gemini",
  "wordpress_org": "https://wordpress.org/plugins/ai-engine/",
  "advisories_url": "https://wpsec.com/vuln/plugin/ai-engine/",
  "attacksurface": "https://attacksurface.wpsec.com/plugin/ai-engine"
 },
 "type": "XSS",
 "cwe": [
  "CWE-79"
 ],
 "cve": [],
 "cvss": {
  "version": "3.1",
  "score": 6.1,
  "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
  "severity": "Medium"
 },
 "affected": {
  "ranges": [
   {
    "from": null,
    "from_inclusive": true,
    "to": "3.9.4",
    "to_inclusive": false
   }
  ],
  "text": [
   "all versions before 3.9.4"
  ]
 },
 "introduced_in": null,
 "fixed_in": "3.9.4",
 "remediation": "Update to 3.9.4 or later.",
 "fix_released": "2026-11-12T09:24:30+00:00",
 "published": "2026-11-13T09:43:21+00:00",
 "updated": "2026-11-12T17:09:26.778611+00:00",
 "also_published_as": null,
 "references": [
  "https://wpsec.com/vuln/WPSEC-2026-3047/",
  "https://plugins.svn.wordpress.org/ai-engine/tags/3.9.4/",
  "https://wordpress.org/plugins/ai-engine/"
 ],
 "attacksurface_url": "https://attacksurface.wpsec.com/plugin/ai-engine",
 "source": "WPSec",
 "license": {
  "name": "CC BY 4.0",
  "url": "https://creativecommons.org/licenses/by/4.0/"
 },
 "usage": {
  "plugin": "Low",
  "affected_versions": "Low",
  "as_of": "2026-11-13"
 }
}