Cross-site scripting via unsanitized cell label
Published Jun 10, 2026 · Updated Jun 10, 2026
Cross-site scripting in draw.io before 29.7.12 allows remote attackers to execute JavaScript when a user opens a crafted .drawio file. The Text Format panel's Convert to SVG check assigns a raw cell label to a detached element's innerHTML without sanitization, causing an image onerror handler to run when import selects the cell. Exploitation requires user interaction and a deployment without a blocking Content Security Policy; successful code can read or modify data available in the editor's origin.
Summary
What happened
Cross-site scripting in draw.io before 29.7.12 allows remote attackers to execute JavaScript when a user opens a crafted .drawio file. The Text Format panel's Convert to SVG check assigns a raw cell label to a detached element's innerHTML without sanitization, causing an image onerror handler to run when import selects the cell. Exploitation requires user interaction and a deployment without a blocking Content Security Policy; successful code can read or modify data available in the editor's origin.
The record
- CVE
- CVE-2026-46642
- Published
- Jun 10, 2026
- Updated
- Jun 10, 2026
- Vendor
- draw.io Ltd
- Product
- draw.io
- Classifications
- CWE-79, CWE-83, T1204.002, T1059.007
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 10, 2026CVE publishedPublication date reported by the CVE source.
- Jun 10, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 29.7.12
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GHSA-fqhg-287p-c6vf proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo