Skip to content

CVE-2026-46642 draw.io: XSS via crafted cell label when opening a .drawio file

MediumCVSS 6.1 EPSS 0.22%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
diagrams drawio < 29.7.12 29.7.12 Fixed
jgraph drawio = < 29.7.12 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
jgraph drawio = < 29.7.12 No fix listed
diagrams drawio < 29.7.12 29.7.12

References