{"id":"CVE-2026-70603","published":"2026-08-05T15:56:50Z","modified":"2026-11-03T22:13:31Z","title":"Electron: shell.openPath path validation bypass via embedded null byte","vendor":"electron","product":"electron","tier":"tail","description":{"text":"Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.6, 40.9.0, 41.1.1, and 42.0.0-beta.1, shell.openPath() did not reject paths containing embedded null bytes. Apps that perform string-only validation of file paths, for example checking the file extension, before passing them to shell.openPath() could be bypassed, allowing an attacker-controlled path to open a different file than the one that passed validation. Apps are only affected if they pass paths derived from untrusted input to shell.openPath() and rely on string-based validation without a filesystem check. This issue is fixed in versions 39.8.6, 40.9.0, 41.1.1, and 42.0.0-beta.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00132,"percentile":0.01351,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-158","name":"Improper Neutralization of Null Byte or NUL Character"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-5c9j-mhmv-5xgx","tags":["x_refsource_CONFIRM"]}],"priority":{"score":4.5,"factors":[{"name":"EPSS percentile","points":0.27},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"electron","affectedVersions":[{"vendor":"electron","product":"electron","versions":["< 39.8.6",">= 40.0.0-alpha.1, < 40.9.0",">= 41.0.0-alpha.1, < 41.1.1",">= 42.0.0-alpha.1, < 42.0.0-beta.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-08-06T03:55:28.551971Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"electron","vulnerableRanges":[">=42.0.0-alpha.1, <42.0.0-beta.1",">=41.0.0-alpha.1, <41.1.1",">=40.0.0-alpha.1, <40.9.0","<39.8.6"],"patched":["42.0.0-beta.1","41.1.1","40.9.0","39.8.6"],"from":["GHSA-5c9j-mhmv-5xgx"],"provenance":"source"}],"summary":{"text":"Electron's shell.openPath() API fails to reject file paths containing embedded null bytes, affecting the electron product's shell module in versions before 39.8.6, 40.9.0, 41.1.1, and 42.0.0-beta.1. An attacker who can supply a path to an application that checks it with string-only validation (such as a file extension check) and passes it to shell.openPath() can get a different file opened than the one that passed validation, but only with local access, low privileges, and a user interaction, and only if the application relies on such validation without a filesystem check.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:24Z"},"euvd":{"id":"EUVD-2026-53436","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-34765","published":"2026-04-07","fixed":"42.0.0-alpha.5","kev":false,"link":{"from":"CVE-2026-34765","to":"CVE-2026-70603","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"42.0.0-alpha.5","toFixed":"42.0.0-beta.1","daysApart":120},{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"39.8.5","toFixed":"39.8.6","daysApart":120}]}},{"cve":"CVE-2026-34781","published":"2026-04-07","fixed":"42.0.0-alpha.5","kev":false},{"cve":"CVE-2026-70599","published":"2026-08-05","fixed":"42.0.0-beta.1","kev":false,"link":{"from":"CVE-2026-70603","to":"CVE-2026-70599","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"39.8.6","toFixed":"39.8.7","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"41.1.1","toFixed":"41.2.0","daysApart":0}]}},{"cve":"CVE-2026-70603","published":"2026-08-05","fixed":"42.0.0-beta.1","kev":false},{"cve":"CVE-2026-70609","published":"2026-08-05","fixed":"42.0.0-beta.1","kev":false,"link":{"from":"CVE-2026-70603","to":"CVE-2026-70609","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"39.8.6","toFixed":"39.8.7","daysApart":0},{"kind":"version-step","provenance":"source","package":"npm:electron","fromFixed":"41.1.1","toFixed":"41.2.0","daysApart":0}]}},{"cve":"CVE-2026-102672","published":"2026-10-13","fixed":"42.0.0-beta.2","kev":false},{"cve":"CVE-2026-70597","published":"2026-08-05","fixed":"42.0.0-beta.3","kev":false}],"package":"npm:electron"}}