{"id":"GHSA-5c9j-mhmv-5xgx","revision":null,"records":[{"revision":"f099de6b2f954a1390aae949479b9332","observedAt":"2026-11-03T23:57:16.858+00:00","statement":{"source":"cve-program","id":"CVE-2026-70603","aliases":[],"title":"Electron: shell.openPath path validation bypass via embedded null byte","description":"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.","state":0,"publishedAt":"2026-08-05T15:56:50.574+00:00","modifiedAt":"2026-11-03T22:13:31.217+00:00","affected":[{"ecosystem":"Vendor product","name":"electron","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"electron\",\n                    \"product\": \"electron\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 39.8.6\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 40.0.0-alpha.1, < 40.9.0\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 41.0.0-alpha.1, < 41.1.1\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 42.0.0-alpha.1, < 42.0.0-beta.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","score":6,"severity":"MEDIUM"}],"references":["https://github.com/electron/electron/security/advisories/GHSA-5c9j-mhmv-5xgx"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-70603","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-70603","identifiers":["CVE-2026-70603"]},"retained":false,"historicalAffected":[]},{"revision":"fe4ddceca8b74b509606af943828c7b6","observedAt":"2026-11-21T19:18:39.681+00:00","statement":{"source":"euvd","id":"EUVD-2026-53436","aliases":["CVE-2026-70603","GHSA-5c9j-mhmv-5xgx"],"title":"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 perf…","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","score":6,"severity":null}],"references":["https://github.com/electron/electron/security/advisories/GHSA-5c9j-mhmv-5xgx"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-53436","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 5, 2026, 3:56:50 PM","dateUpdated":"Nov 3, 2026, 10:13:31 PM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-53436","identifiers":["EUVD-2026-53436","CVE-2026-70603","GHSA-5c9j-mhmv-5xgx"]},"retained":false,"historicalAffected":[]},{"revision":"ba48c87f13e04f0583e72a4b20a79434","observedAt":"2026-11-04T19:04:27.006+00:00","statement":{"source":"nvd","id":"CVE-2026-70603","aliases":[],"title":"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 perf…","description":"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.","state":0,"publishedAt":"2026-08-05T16:17:04.47+00:00","modifiedAt":"2026-11-03T23:17:53.147+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","score":6,"severity":"MEDIUM"}],"references":["https://github.com/electron/electron/security/advisories/GHSA-5c9j-mhmv-5xgx"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-70603","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-20","CWE-158"],"productCriteria":["cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha1:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha2:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha3:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha4:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha5:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:alpha6:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:42.0.0:beta1:*:*:*:node.js:*:*"],"sourceDates":{"published":"2026-08-05T16:17:04.470","lastModified":"2026-11-03T23:17:53.147"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-70603","identifiers":["CVE-2026-70603"]},"retained":false,"historicalAffected":[]},{"revision":"2892f347bf9144a98ebfebba9da8a98e","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-5c9j-mhmv-5xgx","aliases":["CVE-2026-70603"],"title":"Electron: shell.openPath path validation bypass via embedded null byte","description":"### Impact\n`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.\n\nApps are only affected if they pass paths derived from untrusted input to `shell.openPath()` and rely on string-based validation without a filesystem check. Node's `fs` APIs already reject paths containing null bytes, so apps that call `fs.existsSync()`, `fs.stat()`, or similar before `shell.openPath()` are not affected. Apps that do not call `shell.openPath()` with untrusted input are not affected.\n\n### Workarounds\nReject any path containing a null byte before passing it to `shell.openPath()`:\n```js\nif (filePath.includes('\\0')) throw new Error('invalid path');\n```\n\n### Fixed Versions\n* `42.0.0-beta.1`\n* `41.1.1`\n* `40.9.0`\n* `39.8.6`\n\n### For more information\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)","state":0,"publishedAt":"2026-08-05T15:57:03+00:00","modifiedAt":"2026-08-05T16:11:06.665641+00:00","affected":[{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"42.0.0-alpha.1"},{"kind":"fixed","version":"42.0.0-beta.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"41.0.0-alpha.1"},{"kind":"fixed","version":"41.1.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"40.0.0-alpha.1"},{"kind":"fixed","version":"40.9.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"39.8.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/electron/electron/security/advisories/GHSA-5c9j-mhmv-5xgx","https://github.com/electron/electron"],"sourceUrl":"https://github.com/advisories/GHSA-5c9j-mhmv-5xgx","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-5c9j-mhmv-5xgx","identifiers":["GHSA-5c9j-mhmv-5xgx","CVE-2026-70603"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-22T20:25:38.6005905+00:00","complete":true,"records":1790,"lastAttemptAt":"2026-11-22T20:25:38.6005905+00:00","lastSuccessAt":"2026-11-22T20:25:38.8145831+00:00","error":null,"lastVerifiedAt":"2026-11-22T20:25:38.8145834+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-a00cc431548e20f01f2da20f449eca4a9c3c2d80f0a99ee8150099224d339982-5d5287382aa85f924cd3dfd11e7a86c78a6c5c7281c76817613603a3540b87bb","complete":true,"records":430493,"lastAttemptAt":"2026-11-22T20:25:38.145563+00:00","lastSuccessAt":"2026-11-22T20:25:38.1099376+00:00","error":null,"lastVerifiedAt":"2026-11-22T20:25:38.145563+00:00","snapshotPublishedAt":"2026-11-22T19:31:48+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-4f82cf8135634fe1ac24006472340ef1","complete":false,"records":13928,"lastAttemptAt":"2026-11-22T20:26:14.4542643+00:00","lastSuccessAt":"2026-11-22T20:26:14.45+00:00","error":"22 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-22T20:26:14.45+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13953,"expectedIdentifiers":13976,"failedIdentifiers":22},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-22T20:25:38.6005905+00:00","complete":true,"records":1131,"lastAttemptAt":"2026-11-22T20:25:38.6005905+00:00","lastSuccessAt":"2026-11-22T20:25:38.8153122+00:00","error":null,"lastVerifiedAt":"2026-11-22T20:25:38.8153123+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-6c758f87c1704751a5b48ffde6919722","complete":false,"records":13940,"lastAttemptAt":"2026-11-22T20:26:04.1372972+00:00","lastSuccessAt":"2026-11-22T20:26:04.134+00:00","error":null,"lastVerifiedAt":"2026-11-22T20:26:04.134+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13975,"expectedIdentifiers":13976,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-a9c862bcf8bde52ce182f69609f4579ca2fc6956e44f694dddf6a66800619683","complete":true,"records":9989,"lastAttemptAt":"2026-11-22T20:25:38.5240019+00:00","lastSuccessAt":"2026-11-22T16:25:54.6432964+00:00","error":null,"lastVerifiedAt":"2026-11-22T20:25:38.5240019+00:00","snapshotPublishedAt":"2026-11-22T16:18:32+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-6ba2352decd0c95d34a1b50f642582aa34659ce946f552488f0a5cea4e0cc09a","complete":true,"records":2020,"lastAttemptAt":"2026-11-22T20:25:38.3009387+00:00","lastSuccessAt":"2026-11-20T15:46:15.4249619+00:00","error":null,"lastVerifiedAt":"2026-11-22T20:25:38.3009387+00:00","snapshotPublishedAt":"2026-11-20T14:48:20+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-bee95050556198fd967bb73ce720a9ae414cd84a3b278a529e0def1a55b70f2d","complete":true,"records":3214,"lastAttemptAt":"2026-11-22T20:25:38.5398731+00:00","lastSuccessAt":"2026-11-22T11:25:37.2279658+00:00","error":null,"lastVerifiedAt":"2026-11-22T20:25:38.5398731+00:00","snapshotPublishedAt":"2026-11-22T10:03:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-93f8bde17692d302a32a561f6a40a941db24e5e5c3d8083eda975620fb7a4483","complete":true,"records":232857,"lastAttemptAt":"2026-11-22T20:25:38.4059935+00:00","lastSuccessAt":"2026-11-22T08:27:07.8116265+00:00","error":null,"lastVerifiedAt":"2026-11-22T20:25:38.4059935+00:00","snapshotPublishedAt":"2026-11-22T07:33:11+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}