---
id: "CVE-2026-119333"
kind: "vulnerability"
aliases: ["CVE-2026-119333"]
title: "draw.io Desktop on Windows: planted executable runs when opening a diagram"
severity: "high"
cvss: 7.8
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["draw.io", "electron", "package", "windows"]
not_affected_if: ["already-updated", "non-windows", "web-version"]
published_at: "2026-10-30T20:17:07+00:00"
first_seen_at: "2026-10-30T20:25:38+00:00"
updated_at: "2026-10-30T20:26:31+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-119333", "first_seen_at": "2026-10-30T20:25:38+00:00"}]
---

# draw.io Desktop on Windows: planted executable runs when opening a diagram

draw.io Desktop for Windows launches powershell and attrib by bare name, so a file placed next to a diagram can be run instead of the system tool. An attacker who gets a victim to extract an archive and open a .drawio file can run code as that user.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed draw.io Desktop version in Help > About, or the app's package metadata; versions below `31.5.2` are affected.
- Confirm the app runs on Windows; the description covers only the Windows build.

## Fix

- draw.io Desktop: move to `31.5.2` or later.

## Timeline

- 2026-10-30T20:25:38+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-119333

## From the sources

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.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
