Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Diagrams | Drawio | < 29.7.12 |
Related Weaknesses (CWE)
References
- https://github.com/jgraph/drawio/releases/tag/v29.7.12Release Notes
- https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vfExploitMitigationVendor Advisory
- https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vfExploitMitigationVendor Advisory
FAQ
What is CVE-2026-46642?
CVE-2026-46642 is a vulnerability with a CVSS score of 6.1 (MEDIUM). 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. T...
How severe is CVE-2026-46642?
CVE-2026-46642 has been rated MEDIUM with a CVSS base score of 6.1/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-46642?
Check the references section above for vendor advisories and patch information. Affected products include: Diagrams Drawio.