CVE-2026-119333

draw.io Desktop allows Windows executable search-path hijacking

Published Oct 30, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Draw.io Desktop for Windows can run an attacker‑controlled PowerShell script or executable because the application starts system utilities from a bare name. When a diagram is first opened from a directory not already in the program’s working path, the directory containing the .drawio file becomes the current working directory. If an attacker places a file named powershell.bat, powershell.exe, attrib.exe, or a similarly named executable in that folder, the program will launch that file instead of the intended system utility. This allows a victim who extracts an archive supplied by an attacker and immediately opens the .drawio file to run arbitrary code that the attacker crafted. The flaw can be triggered when Local Fonts are enabled or when Draw.io updates draft or backup attributes. The threat exposes the victim’s machine to arbitrary code execution, potentially compromising confidentiality, integrity, and availability.

Affected Systems

The vulnerability affects the Windows version of the jgraph Draw.io Desktop application prior to update 31.5.2. No other operating systems or product versions are listed as affected.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity risk. No EPSS score is available, and the vulnerability is not listed in CISA’s KEV catalog, suggesting that it may be less widely exploited at present. However, the attack requires only a local file and does not need network or elevated privileges, meaning that a user who opens a malicious diagram file from an untrusted source can trigger the exploit. The likely attack vector is a phishing or social‑engineering vector that delivers a malicious archive containing a .drawio file and an attacker‑controlled executable placed in the same folder. If the user runs the file, the payload will execute with the privileges of the application’s process, which may already have elevated rights if the user runs Draw.io as an administrator.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor issued update to draw.io Desktop version 31.5.2 or later.
  • Ensure that .drawio files and archives are obtained only from trusted, authenticated sources and avoid opening files received via unsolicited email or other unverified channels.
  • Maintain up‑to‑date antivirus and endpoint protection that can detect malicious PowerShell scripts or executables embedded in document archives before they are executed.

Generated by OpenCVE AI on October 30, 2026 at 21:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Jgraph
Jgraph drawio-desktop
Vendors & Products Jgraph
Jgraph drawio-desktop
Type Values Removed Values Added
Description 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.
Title draw.io Desktop allows Windows executable search-path hijacking
Weaknesses CWE-426
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 2, 2026, 2:57 PM
Reserved
Oct 29, 2026, 8:44 PM
Status
Awaiting Analysis
Published
Oct 30, 2026, 8:17 PM
Modified
Nov 2, 2026, 7:14 PM