CVE-2026-46642

Medium

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.

SeverityMedium
CVSS6.1
Exploit probability—
ProductDiagrams Drawio
PublishedJun 10, 2026
First seenJun 10, 2026

How to fix

Update
  • diagrams drawio29.7.12 or later

Affected products

ProductAffected versionsFixed in
diagrams drawiov < 29.7.1229.7.12

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.