CVE-2026-46642

draw.io: XSS via crafted cell label when opening a .drawio file

MEDIUM
6.1
CVSS Score
Published: June 10, 2026 at 05:42 PM UTC
Updated: October 26, 2026 at 11:10 AM UTC
2 products affected across 2 vendorsDrawioDrawio

Using drawio by jgraph?

Get instant alerts when new vulnerabilities affect drawio - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.1
Exploit prediction
EPSS 0.2%
SSVC
PoC

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 29.7.12
Affected range stops below 29.7.12, so it looks safe — our inference, not a vendor statement
v < 29.7.12
Affected range stops below 29.7.12, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (2)

x_refsource_CONFIRMExploitMitigationVendor Advisory
Source: cverecord
https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vf
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/jgraph/drawio/releases/tag/v29.7.12

SSVC — Action Prioritization

SSVCPoCNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.1MEDIUMGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-79

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card