AI Engine <= 3.8.0 - Unauthenticated Stored Cross-Site Scripting via 'model_' Parameter → PHP Error-Log Injection → Advisor Indirect Prompt Injection
Summary
| CVE | CVE-2026-96561 |
|---|---|
| State | PUBLISHED |
| Assigner | Wordfence |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-01 04:18:22 UTC |
| Updated | 2026-10-01 04:18:22 UTC |
| Description | The AI Engine – The Chatbot, AI Framework & MCP for WordPress plugin for WordPress is vulnerable to Stored Cross-Site Scripting in versions up to, and including, 3.8.0 This is due to a chain of missing input neutralization and output escaping across the /mwai-ui/v1/chats/submit REST endpoint, the PHP error-log parser (MeowKit_MWAI_Helpers::php_error_logs), the Advisor task (Meow_MWAI_Modules_Advisor::run_advisor), and the Advisor dashboard widget (advisor_metabox): the server-parameter denylist in chat_submit strips only exact key names such as 'model' while convert_keys() later canonicalizes 'model_' back to 'model', allowing an unauthenticated caller to place an attacker-controlled string (including CR/LF) into $query->model; final_checks() throws an Exception whose message embeds that raw string, and the non-streaming, non-admin catch branch writes it to the PHP error log unmodified — creating a forged log line that the plugin's own parser subsequently returns as recent PHP-error content; run_advisor() then appends that content verbatim to the AI prompt (indirect prompt injection — CWE-1427), the returned JSON is stored in the mwai_advisor_data option with no schema validation or HTML sanitization, and advisor_metabox() concatenates the resulting 'title' and 'description' values directly into the WordPress dashboard widget without esc_html(), wp_kses(), or equivalent escaping. This makes it possible for unauthenticated attackers to inject arbitrary web scripts in pages that will execute whenever an administrator accesses the WordPress dashboard. |
Risk And Classification
Primary CVSS: v3.1 7.2 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Problem Types: CWE-79 | CWE-79 CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.2 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
| 3.1 | CNA | DECLARED | 7.2 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
ChangedConfidentiality
LowIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Tigroumeow | AI Engine The Chatbot AI Framework MCP For WordPress | affected 3.8.0 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.0/classes/modules/chatbot.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.0/classes/rest.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.0/classes/engines/core.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.0/common/helpers.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.0/classes/query/base.php | [email protected] | plugins.trac.wordpress.org | |
| www.wordfence.com/threat-intel/vulnerabilities/id/910e51da-6ee2-45d5-837b-7fea8... | [email protected] | www.wordfence.com | |
| plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.0/classes/modules/chatbot.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.0/classes/modules/advisor.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/changeset | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.0/classes/modules/advisor.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.0/classes/modules/chatbot.php | [email protected] | plugins.trac.wordpress.org | |
| plugins.trac.wordpress.org/browser/ai-engine/tags/3.8.0/classes/modules/advisor.php | [email protected] | plugins.trac.wordpress.org | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: whale120 (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-09-23T13:43:32.000Z | Vendor Notified |
| CNA | 2026-09-30T15:12:28.000Z | Disclosed |
There are currently no legacy QID mappings associated with this CVE.