CVE-2026-46642
Last modified
CVE-2026-46642 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Diagrams | Drawio | < 29.7.12 |
References
- https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vfExploit, Mitigation, Vendor Advisory
- https://github.com/jgraph/drawio/security/advisories/GHSA-fqhg-287p-c6vfExploit, Mitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-46642?
How severe is CVE-2026-46642?
How do I fix CVE-2026-46642?
Are you affected by CVE-2026-46642?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
