Reference page — cumulative record through Wednesday, August 19, 2026 UTC. Reference pages update as the archive grows; only dated daily editions are immutable pages of record.
jgraph drawio — draw.io: XSS via crafted cell label when opening a .drawio file
AV AC PR UI S C I A CVSS EPSS %ile KEV
N L N R C L L N 6.1 .0022 12.9 —
AFFECTED
Product Versions Fixed
drawio < 29.7.12 – —
TIMELINE
May 15 Reserved by GitHub_M
Jun 10 EXPLOIT PUBLISHED — CVE-2026-46642 (jgraph drawio). Public exploit reference added.
Jun 10 Published (CNA: GitHub_M)
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.
Lifecycle
Complete event history — 3 events, chronological
| Date | Event | Detail |
| May 15, 2026 | Reserved | Reserved by GitHub_M |
| June 10, 2026 | EXPLOIT PUBLISHED | EXPLOIT PUBLISHED — CVE-2026-46642 (jgraph drawio). Public exploit reference added. |
| June 10, 2026 | Published | Published (CNA: GitHub_M) |
Affected
Affected products and packages — 1 row
| Vendor | Product / Package | Ecosystem | Version introduced | Fixed |
| jgraph | drawio | — | < 29.7.12 | — |
About this page
This is a reference page, not a dated page of record. It assembles the complete lifecycle of CVE-2026-46642 from the CVE Program record, NVD enrichment, the CISA KEV catalog, EPSS, and OSV advisories. The box score's numbers (CVSS, EPSS, KEV status) are current as of Wednesday, August 19, 2026 UTC and are re-derived as the archive grows; only dated daily editions are immutable pages of record. The authoritative source for this identifier is cve.org.