GHSA-qg46-52fx-h7p8: draw.io Desktop allows Windows executable search-path hijacking

Published Oct 30, 2026
·
Updated

draw.io Desktop is the official Electron build of draw.io. Prior to 31.5.2, the Windows application launched powershell and attrib by bare executable name from src/main/electron.js. When draw.io Desktop was not already running, opening a diagram from File Explorer made the diagram directory the current working directory, allowing a colocated attacker-controlled powershell.bat or attrib.exe to be resolved before the intended system executable. A victim who extracted an attacker-supplied archive and cold-opened its legitimate .drawio file could therefore execute attacker-controlled code when Local Fonts were enabled or when draft or backup attributes were updated. This issue is fixed in version 31.5.2.

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade draw.io Desktop to a version that resolves this vulnerability.

    Fixed in 31.5.2

Event History

Oct 30, 2026
CVE Published
via OSV·07:59 PM
Data Sourced
via OSV·07:59 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Windows users of draw.io Desktop versions before 31.5.2 are exposed when they open a diagram from File Explorer while the application is not already running. The risk applies when the diagram directory contains an attacker-controlled powershell.bat or attrib.exe.

2

What user action is required for exploitation?

A victim must cold-open a legitimate .drawio file from an attacker-supplied directory, such as one extracted from an archive. The application must invoke the affected command path, which occurs when Local Fonts are enabled or when draft or backup attributes are updated.

3

Is simply opening a malicious diagram enough?

The described attack depends on a malicious executable or batch file being colocated with the diagram and the diagram being opened from File Explorer while draw.io Desktop is not already running. The advisory does not state that diagram content alone triggers code execution.

4

What should be done if patching cannot happen immediately?

Avoid cold-opening .drawio files from untrusted or attacker-supplied directories, especially extracted archives, and do not keep executable or batch files alongside diagrams. Opening draw.io Desktop before opening a diagram may avoid the stated cold-open condition, but this is not described as a complete mitigation.

5

How can I remediate the issue?

Update draw.io Desktop to version 31.5.2, which fixes the executable search-path hijacking issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203