Cross-site scripting in draw.io - CVE-2026-58504

 

Cross-site scripting in draw.io - CVE-2026-58504

Published: June 23, 2026 / Updated: September 22, 2026


Vulnerability identifier: #VU135039
CSH Severity: Medium
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2026-58504
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary JavaScript in the origin of the draw.io instance.

The vulnerability exists due to cross-site scripting in TextFormatPanel.addFont() in src/main/webapp/js/grapheditor/Format.js when opening or importing a crafted .drawio file and processing selected cells in the Format panel. A remote attacker can supply a crafted diagram file to execute arbitrary JavaScript in the origin of the draw.io instance.

User interaction is required to open or import the crafted file, and on the import path the selected cells are processed automatically. In embedded deployments, the script may execute in the host application's origin.


Affected software

draw.io

How to mitigate CVE-2026-58504

Install security update from vendor's website.

draw.io - update to 30.2.5

External References

Related Security Bulletins