Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconCraft malicious .drawio file with onerror payload in cell label
-
DeliveryDeliver file to draw.io user via phishing or shared repository
-
ExploitVictim opens file in unpatched draw.io editor
-
InstallImport auto-selects cell triggering Text Format panel routine
-
C2Raw label assigned to detached element innerHTML without sanitization
-
ExecuteBrowser fires onerror event handler
-
ImpactArbitrary JavaScript executes in draw.io editor origin
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 victim must open a crafted .drawio file in draw.io prior to version 29.7.12. Exploitation is triggered automatically by the file import process, which selects cells programmatically - no additional manual interaction (such as clicking on a cell) is required after opening the file. This means the social engineering step (delivering the file) is the only human-dependent prerequisite. CVSS PR:N confirms the attacker requires no authentication or account on the target system. CVSS UI:R captures the requirement that the victim must open the malicious file. The vulnerability is limited to the draw.io editor's browser origin, so impact is scoped to the web session context of the draw.io application. Exploitation is not possible against users who have already upgraded to version 29.7.12 or later. There is no indication that server-side draw.io deployments with content filtering or WAFs would reliably block this vector, as the payload is embedded within a legitimate application file format rather than an HTTP request. |
| Impact | The CVSS 6.1 Medium score is derived from a vector of AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. The Scope:Changed (S:C) component is significant - it signals that the impact crosses the security boundary of the vulnerable component into the broader editor origin, enabling session hijacking, credential theft, or further attacks on the draw.io web application's domain context. Attack Complexity:Low and Privileges Required:None indicate no privileged access is needed from the attacker's side. The primary friction is UI:R - the attacker must socially engineer a draw.io user into opening a malicious file, which is a realistic and low-barrier delivery vector given that .drawio files are routinely shared for collaboration. EPSS score was not provided in available data, so exploitation probability cannot be quantified numerically. The absence of a CISA KEV listing and lack of identified public proof-of-concept code reduces urgency relative to KEV-listed vulnerabilities, but the ease of crafting a functional payload and the collaborative file-sharing use case of draw.io make this a credible phishing or supply-chain delivery risk in enterprise environments. Overall, this is a genuine medium-priority issue that warrants patching promptly rather than emergency response. |
| Exploit ScenarioDerived | An attacker crafts a .drawio diagram file containing one or more cells whose labels embed the payload |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 10, 2026
Stored cross-site scripting in draw.io prior to version 29.7.12 allows arbitrary JavaScript execution in the editor's origin when a victim opens a crafted .drawio file. The flaw bypasses the existing label sanitizer entirely because it resides in a separate, unsanitized code path - the Text Format panel's feature-detection routine - which assigns raw cell label content directly to a detached DOM element's innerHTML. Exploitation is automatic upon file import since draw.io selects cells programmatically during that process, requiring no additional user interaction beyond opening the file. No public exploit code has been identified at time of analysis, and this CVE is not listed in the CISA KEV catalog.
RemediationAI
Upgrade draw.io to version 29.7.12 or later, which is confirmed as the vendor-released fix per the GitHub release at https://github.com/jgraph/drawio/releases/tag/v29.7.12 and the security advisory at https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vf. For organizations unable to patch immediately, restrict access to the draw.io instance to trusted internal users only and implement strict file-sharing policies prohibiting the ingestion of .drawio files from unverified or external sources - this reduces but does not eliminate the attack surface, as insider threat or compromised accounts remain a vector. Disabling the Text Format panel entirely, if supported by the deployment configuration, would remove the vulnerable code path, though this carries the trade-off of losing text formatting functionality. Content Security Policy (CSP) headers enforcing script-src restrictions on the draw.io origin can limit the impact of successful XSS payloads by blocking inline script execution or restricting exfiltration endpoints, but CSP alone does not prevent the initial code execution in all configurations.
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
draw.io (CPE: cpe:2.3:a:jgraph:drawio:*:*:*:*:*:*:*:*) is a browser-based diagramming and whiteboarding application by JGraph. The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation - Cross-site Scripting), specifically a DOM-based XSS variant. The application correctly sanitizes cell labels on the rendering code path, but a second, independent code path in the Text Format panel's feature-detection routine reads raw cell label values and assigns them to a detached DOM element via innerHTML without sanitization. A critical browser behavior is exploited here: even elements detached from the live document tree still trigger event handlers such as onerror when image loads fail. An attacker payload of <img src=x onerror=...> placed in any cell label therefore executes its JavaScript handler the moment the detached element is created, before any rendering sanitizer has a chance to process the content. Because file import automatically selects cells, this fires synchronously during the open operation.
Know when Drawio 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
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
draw.io is a configurable diagramming and whiteboarding application. Prior to version 29.7.12, a crafted .drawio file can execute arbitrary JavaScript in the editor's origin when the file is opened. The vulnerability is not in the label sanitizer (which works correctly on the rendering path) but in a feature-detection routine in the Text Format panel that reads the raw cell label and assigns it to a detached element's innerHTML without sanitization. Browsers fire onerror for failed image loads even on detached elements, so an <img src=x onerror=...> payload in any cell label triggers script execution as soon as the cell is selected - which import does automatically. This issue has been patched in version 29.7.12.
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.
OS Command Injection in GitHub repository jgraph/drawio prior to 21.5.0. Rated critical severity (CVSS 9.8), this vulner
Arbitrary Code Execution through Sanitizer Bypass in GitHub repository jgraph/drawio prior to 18.0.0. Rated critical sev
Improper Input Validation in GitHub repository jgraph/drawio prior to 18.0.6. Rated high severity (CVSS 8.8), this vulne
OS Command Injection in GitHub repository jgraph/drawio prior to 20.3.0. Rated high severity (CVSS 7.8), this vulnerabil
Denial of Service in GitHub repository jgraph/drawio prior to 18.1.3. Rated high severity (CVSS 7.5), this vulnerability
Improper Access Control in GitHub repository jgraph/drawio prior to 20.2.8. Rated high severity (CVSS 7.5), this vulnera
Exposure of Sensitive Information to an Unauthorized Actor in GitHub repository jgraph/drawio prior to 18.1.2. Rated hig
Server-Side Request Forgery (SSRF) in GitHub repository jgraph/drawio prior to 18.0.8. Rated high severity (CVSS 7.5), t
Server-Side Request Forgery (SSRF) in GitHub repository jgraph/drawio prior to 18.0.7. Rated high severity (CVSS 7.5), t
Server-Side Request Forgery (SSRF) in GitHub repository jgraph/drawio prior to 18.0.5. Rated high severity (CVSS 7.5), t
Server-Side Request Forgery (SSRF) in GitHub repository jgraph/drawio prior to 18.0.6. Rated high severity (CVSS 7.5), t
Path Traversal in WellKnownServlet in GitHub repository jgraph/drawio prior to 18.0.5. Rated high severity (CVSS 7.5), t
EUVD-2026-36077
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB