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.
{
"license": "CC-BY-4.0",
"sources": [
{
"affected": {
"electronjs:electron": [
"< 39.8.6",
"= 42.0.0-alpha1+node.js",
"= 42.0.0-alpha2+node.js",
"= 42.0.0-alpha3+node.js",
"= 42.0.0-alpha4+node.js",
"= 42.0.0-alpha5+node.js",
"= 42.0.0-alpha6+node.js",
"= 42.0.0-beta1+node.js",
">= 40.0.0, < 40.9.0",
">= 41.0.0, < 41.1.1"
]
},
"database_specific": {
"status": "Analyzed"
},
"html_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-70603",
"id": "CVE-2026-70603",
"imported": "2026-11-21T06:56:03.683Z",
"modified": "2026-11-03T23:17:53.147Z",
"published": "2026-08-05T16:17:04.470Z",
"url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-70603"
},
{
"affected": {
"electronjs:electron": [
"< 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"
]
},
"fields": [
"affected"
],
"html_url": "https://github.com/electron/electron/security/advisories/GHSA-5c9j-mhmv-5xgx",
"id": "GHSA-5c9j-mhmv-5xgx",
"imported": "2026-11-21T06:56:03.683Z",
"modified": "2026-08-05T15:55:32Z",
"published": "2026-07-27T23:28:55Z",
"url": "https://api.github.com/repos/electron/electron/security-advisories/GHSA-5c9j-mhmv-5xgx"
}
]
}