新着 / 2026年11月26日 / CVE-2026-131589
AI Engine WordPressプラグインの任意ファイルアップロードの脆弱性
掲載
何が問題か
AI Engine(WordPress向けAIチャットボット・MCPサーバープラグイン)の3.9.4以前のすべてのバージョンに、任意ファイルアップロードの脆弱性があることが報告されています。/mwai/v1/helpers/create_image REST APIエンドポイントのurlパラメータを経由し、filenameを省略した場合に拡張子のホワイトリスト検証が行われず、HTMLやSVG、JavaScriptなどのファイルがアップロードディレクトリに保存される可能性があります。Content-Typeがimage/で始まれば受け入れられるため、内容が有効な画像である必要はありません。
悪用されると
Editor以上の権限を持つ認証済みの攻撃者が、任意の拡張子を付けたファイルを配置でき、管理者が生成された添付ファイルのURLを開くと、保存型クロスサイトスクリプティングが成立する可能性があります。被害の規模は公表されていません。
取るべき対応
AI Engineプラグインを3.9.4より新しいバージョンに更新してください。修正版の具体的なバージョン番号は公表されていません。更新までの間は、Editor権限のアカウントを必要最小限に留め、アップロードディレクトリ内の不審なHTML、SVG、JavaScriptファイルがないか確認してください。
AIが出典から要約し、数値を機械照合しています。
更新履歴
初回掲載。
指標
| 深刻度(CVSS v3.1) | 重要 7.2CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H |
|---|---|
| 実際の攻撃での悪用 | CISA KEVには未掲載 |
| 問題の種類 | CWE-434 |
| CVE公開日 | 2026-11-26 |
出典
- NVD: CVE-2026-131589
- https://plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/rest.php#L1210
- https://plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/rest.php#L326
- https://plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/services/image.php#L140
- https://plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/services/image.php#L203
- https://plugins.trac.wordpress.org/browser/ai-engine/tags/3.9.4/classes/services/image.php#L233
- 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
- https://www.wordfence.com/threat-intel/vulnerabilities/id/02f6619b-eb5e-42ba-b804-9ac2b2dee482?source=cve
公式の説明(英語の原文)
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.