CVE-2026-46642
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.
Published:Jun 10, 2026
Last Modified:Jun 16, 2026
EPS:Jun 10, 2026
EPSS Score:0.00183
CVSS Score:6.1
Affected Products
Vendor
Product
Action
Vendor
Diagrams
Product
Drawio
Diagrams
Drawio
Vendor
Jgraph
Product
Drawio
Jgraph
Drawio
Exploits
Common Weakness Enumeration
Common Attack Pattern Enumeration and Classification (CAPEC)
Related CVEs
CVE-2023-3975 (CVSS 9.8) — OS Command Injection in GitHub repository jgraph/drawio prior to 21.5.0.…
CVE-2023-3974 (CVSS 9.8) — OS Command Injection in GitHub repository jgraph/drawio prior to 21.4.0.…
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
