cvedb.io
CVE-2026-46642
MEDIUM · CVSS 6.1
EPSS exploitation probability: 0%
Published 2026-06-10T18:17:06.007 · Last modified 2026-06-17T10:53:48.977

Summary

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.

Affected products

diagrams — drawio

Does this affect you?

Add your gear to cvedb and we'll alert you only when diagrams ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.