Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft URL with XSS payload in mcp parameter
-
DeliveryDeliver link to victim via phishing or social engineering
-
ExploitVictim clicks URL and browser loads app
-
ExecutionApplication reflects unsanitized mcp value into HTML/JS
-
PersistArbitrary JavaScript executes in localhost browser origin
-
ImpactExfiltrate diagram sessions and API credentials to attacker
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The vulnerable endpoint must receive and render the |
| Impact | The CVSS 4.0 base score of 5.1 (Medium) accurately reflects the primary constraint: mandatory active user interaction (UI:A) means the attacker must socially engineer a victim into clicking a crafted URL rather than exploiting passively. There is no direct impact on the vulnerable system's confidentiality, integrity, or availability (VC:N/VI:N/VA:N); impact is scoped to subsequent-system effects (SC:L/SI:L), consistent with data exfiltration from the localhost browser origin rather than server-side compromise. The publicly available POC (confirmed by VulnCheck) lowers exploitation effort significantly and makes this more actionable than a theoretical finding, but EPSS data was not provided in the input and cannot be cited. No CISA KEV listing is present, so active widespread exploitation is not confirmed. Real-world priority is moderate for environments where users handle sensitive diagram data or API credentials and may be exposed to phishing - but this is a low-footprint niche tool, limiting aggregate exposure. The localhost context is a meaningful nuance: if the app exposes local resources not normally web-accessible, the effective impact could exceed the SC:L/SI:L rating. |
| Exploit ScenarioDerived | An attacker constructs a URL targeting the victim's locally running Next AI Draw.io instance with a JavaScript payload embedded in the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 13, 2026
Reflected XSS in Next AI Draw.io 0.2.1 through 0.4.16 allows unauthenticated remote attackers to inject and execute arbitrary JavaScript in the localhost origin by crafting malicious URLs containing a payload in the unsanitized mcp query parameter. Successful exploitation - which requires a victim to click the crafted link - enables theft of diagram session tokens and API credentials accessible within that browser origin. Publicly available exploit code exists (GitHub issue #917 via VulnCheck), though no CISA KEV listing confirms active exploitation at time of analysis.
RemediationAI
No vendor-released patched version is independently confirmed from available data - the fix reference (https://github.com/DayuanJiang/next-ai-draw-io/issues/917) points to a GitHub issue rather than a tagged release, so the upstream fix availability should be monitored directly in that repository. Until a patched release is confirmed, operators should restrict network access to the Next AI Draw.io instance to trusted users and IP ranges via firewall rules or reverse-proxy authentication, preventing attackers from delivering crafted URLs to users in the first place. As a secondary control, implement a Content Security Policy header that disallows inline scripts (script-src 'self'), which would block reflected XSS payloads even if parameter injection occurs - note this may break legitimate inline script functionality in the app and should be tested. Users should also be advised not to open URLs containing mcp query parameters from untrusted sources. Monitor the VulnCheck advisory at https://www.vulncheck.com/advisories/next-ai-draw-io-reflected-xss-via-unsanitized-mcp-query-parameter for patch release updates.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Next AI Draw.io (CPE: cpe:2.3:a:dayuanjiang:next-ai-draw-io:*:*:*:*:*:*:*:*) is a Next.js-based application integrating AI capabilities with the Draw.io diagramming editor, typically running on localhost. The vulnerability is classified as CWE-79 (Improper Neutralization of Input During Web Page Generation - XSS): the mcp query parameter is interpolated directly into rendered HTML and JavaScript without HTML-encoding, output escaping, or Content Security Policy enforcement, allowing attacker-controlled strings to break out of data context into executable script context. Because the application runs on the localhost origin, injected scripts inherit any elevated trust or relaxed CORS posture that localhost contexts may carry, and can access locally stored API keys, session tokens, and diagram data. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N) confirms network delivery with no complexity or privilege prerequisites, but requires active user interaction.
Know when Next Ai Draw Io gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
Network-delivered reflected XSS requires active user interaction (UI:R); payload executes in a different browser origin than the attacker controls, constituting scope change (S:C) with limited confidentiality and integrity impact on that origin.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Next AI Draw.io 0.2.1 through 0.4.16 contains a reflected cross-site scripting vulnerability in the mcp query parameter that is interpolated without escaping into HTML and JavaScript. Attackers can craft malicious URLs to execute arbitrary JavaScript in the localhost origin, enabling exfiltration of diagram sessions and API data.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
More in Next Ai Draw Io
View allServer-side request forgery in Next AI Draw.io through 0.4.16 enables unauthenticated remote attackers to reach arbitrar
Denial of service in Next AI Draw.io prior to version 0.4.15 allows local attackers to crash the embedded HTTP sidecar b
EUVD-2026-58196
GHSA-7wvw-5p69-5396
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB