{"id":"CVE-2026-119333","state":"PUBLISHED","title":"draw.io Desktop allows Windows executable search-path hijacking","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.","publishedAt":"2026-10-30T19:59:51.737Z","updatedAt":"2026-10-30T19:59:51.737Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["jgraph drawio-desktop"],"affected":[{"vendor":"jgraph","product":"drawio-desktop","versions":[{"version":"< 31.5.2","status":"affected"}]}],"references":["https://github.com/jgraph/drawio-desktop/security/advisories/GHSA-qg46-52fx-h7p8","https://github.com/jgraph/drawio-desktop/commit/3fed7ecfa6871d952d9946508ec85739796a59b2","https://github.com/jgraph/drawio-desktop/releases/tag/v31.5.2"],"weaknesses":["CWE-426"],"ingestedAt":"2026-10-30T20:04:06.178Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/119xxx/CVE-2026-119333.json","commit":"7684a5927aa3dceabed8dec00447545f1b10f31f","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-119333","state":"PUBLISHED","datePublished":"2026-10-30T19:59:51.737Z","dateUpdated":"2026-10-30T19:59:51.737Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-10-29T20:44:30.285Z"},"containers":{"cna":{"title":"draw.io Desktop allows Windows executable search-path hijacking","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"jgraph","product":"drawio-desktop","versions":[{"version":"< 31.5.2","status":"affected"}]}],"references":[{"url":"https://github.com/jgraph/drawio-desktop/security/advisories/GHSA-qg46-52fx-h7p8","name":"https://github.com/jgraph/drawio-desktop/security/advisories/GHSA-qg46-52fx-h7p8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jgraph/drawio-desktop/commit/3fed7ecfa6871d952d9946508ec85739796a59b2","name":"https://github.com/jgraph/drawio-desktop/commit/3fed7ecfa6871d952d9946508ec85739796a59b2","tags":["x_refsource_MISC"]},{"url":"https://github.com/jgraph/drawio-desktop/releases/tag/v31.5.2","name":"https://github.com/jgraph/drawio-desktop/releases/tag/v31.5.2","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-426","lang":"en","description":"CWE-426: Untrusted Search Path","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-10-30T19:59:51.737Z"},"source":{"advisory":"GHSA-qg46-52fx-h7p8","discovery":"UNKNOWN"}}}}}