CVE-2026-46642

MEDIUM CVSS 3.1: 6.1 EPSS 0.22%
Updated Oct 26, 2026
Diagrams
Parameter Value
CVSS 6.1 (MEDIUM)
Affected Versions before 29.7.12
Fixed In 29.7.12
Type CWE-79 (Cross-Site Scripting (XSS))
Vendor Diagrams
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
None
No privileges needed
User Interaction
Required
User action required

Impact Assessment

Confidentiality
Low
Partial data leak
Integrity
Low
Partial data modification
Availability
None
No disruption

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Diagrams Drawio
cpe:2.3:a:diagrams:drawio:*:*:*:*:*:*:*:*
— 29.7.12