CVE-2026-46642: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in jgraph drawio
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.
AI Analysis
Technical Summary
CVE-2026-46642 is a CWE-79 cross-site scripting vulnerability in jgraph drawio before version 29.7.12. The flaw is not in the label sanitizer used during rendering but in a feature-detection routine that reads raw cell labels and assigns them unsanitized to a detached element's innerHTML. Because browsers trigger onerror events even on detached elements, an attacker can embed an <img src=x onerror=...> payload in any cell label, causing script execution when the cell is selected (which happens automatically on import). This vulnerability allows arbitrary JavaScript execution in the editor's origin context. The issue is fixed in version 29.7.12.
Potential Impact
An attacker who crafts a malicious .drawio file can execute arbitrary JavaScript in the context of the drawio editor when the file is opened and the affected cell is selected. This can lead to limited confidentiality and integrity impacts within the editor's origin, such as data exposure or manipulation. There is no impact on availability. The CVSS 3.1 base score is 6.1 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, scope changed, and low confidentiality and integrity impacts.
Mitigation Recommendations
This vulnerability is patched in drawio version 29.7.12. Users should upgrade to version 29.7.12 or later to remediate this issue. No other mitigations are indicated by the vendor advisory. Patch status is confirmed by the vendor stating the issue is fixed in 29.7.12.
CVE-2026-46642: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in jgraph drawio
Description
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.
CVSS v3.1
Score 6.1medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-46642 is a CWE-79 cross-site scripting vulnerability in jgraph drawio before version 29.7.12. The flaw is not in the label sanitizer used during rendering but in a feature-detection routine that reads raw cell labels and assigns them unsanitized to a detached element's innerHTML. Because browsers trigger onerror events even on detached elements, an attacker can embed an <img src=x onerror=...> payload in any cell label, causing script execution when the cell is selected (which happens automatically on import). This vulnerability allows arbitrary JavaScript execution in the editor's origin context. The issue is fixed in version 29.7.12.
Potential Impact
An attacker who crafts a malicious .drawio file can execute arbitrary JavaScript in the context of the drawio editor when the file is opened and the affected cell is selected. This can lead to limited confidentiality and integrity impacts within the editor's origin, such as data exposure or manipulation. There is no impact on availability. The CVSS 3.1 base score is 6.1 (medium severity), reflecting network attack vector, low attack complexity, no privileges required, user interaction required, scope changed, and low confidentiality and integrity impacts.
Mitigation Recommendations
This vulnerability is patched in drawio version 29.7.12. Users should upgrade to version 29.7.12 or later to remediate this issue. No other mitigations are indicated by the vendor advisory. Patch status is confirmed by the vendor stating the issue is fixed in 29.7.12.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-15T20:11:54.584Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a29aa301a4077f7803bc170
Added to database: 6/10/2026, 6:17:20 PM
Last enriched: 6/10/2026, 6:26:41 PM
Last updated: 6/10/2026, 8:02:33 PM
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.