Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-46642: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in jgraph drawio

0
Medium
VulnerabilityCVE-2026-46642cvecve-2026-46642cwe-79
Published: Wed Jun 10 2026 (06/10/2026, 17:42:02 UTC)
Source: CVE Database V5
Vendor/Project: jgraph
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected software

GitHub Actionsmore threats →ai
jgraph/drawio
pkg:github/jgraph/drawio
Affected versions
<29.7.12

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/10/2026, 18:26:41 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses