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.
Configurations

Configuration 1 (hide)

cpe:2.3:a:diagrams:drawio:*:*:*:*:*:*:*:*

History

17 Jun 2026, 10:53

Type Values Removed Values Added
References () https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vf - Exploit, Vendor Advisory, Mitigation () https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vf - Exploit, Mitigation, Vendor Advisory

16 Jun 2026, 13:54

Type Values Removed Values Added
First Time Diagrams drawio
Diagrams
References () https://github.com/jgraph/drawio/releases/tag/v29.7.12 - () https://github.com/jgraph/drawio/releases/tag/v29.7.12 - Release Notes
References () https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vf - () https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vf - Exploit, Vendor Advisory, Mitigation
CPE cpe:2.3:a:diagrams:drawio:*:*:*:*:*:*:*:*

11 Jun 2026, 14:16

Type Values Removed Values Added
References () https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vf - () https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vf -

10 Jun 2026, 18:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-06-10 18:17

Updated : 2026-06-17 10:53


NVD link : CVE-2026-46642

Mitre link : CVE-2026-46642

CVE.ORG link : CVE-2026-46642


JSON object : View

Products Affected

diagrams

  • drawio
CWE
CWE-79

Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')