{"id":"GHSA-7x97-j373-85x5","revision":null,"records":[{"revision":"9e399c5fe864493985af2b52afa8e94a","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2023-39956","aliases":[],"title":"Electron: Out-of-package code execution when launched with arbitrary cwd","description":"Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Electron apps that are launched as command line executables are impacted.   Specifically this issue can only be exploited if the following conditions are met: 1. The app is launched with an attacker-controlled working directory and 2. The attacker has the ability to write files to that working directory. This makes the risk quite low, in fact normally issues of this kind are considered outside of our threat model as similar to Chromium we exclude Physically Local Attacks but given the ability for this issue to bypass certain protections like ASAR Integrity it is being treated with higher importance.  This issue has been fixed in versions:`26.0.0-beta.13`, `25.4.1`, `24.7.1`, `23.3.13`, and `22.3.19`. There are no app side workarounds, users must update to a patched version of Electron.","state":0,"publishedAt":"2023-09-06T20:09:33.185+00:00","modifiedAt":"2024-09-26T15:17:59.795+00:00","affected":[{"ecosystem":"Vendor product","name":"electron","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"electron\",\n                    \"product\": \"electron\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 22.3.19\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 23.0.0, < 23.3.13\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 24.0.0, < 24.7.1\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 25.0.0, < 25.4.1\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 26.0.0-beta.1, < 26.0.0-beta.13\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","score":6.1,"severity":"MEDIUM"}],"references":["https://github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2023-39956","license":"CVE Program Terms of Use","key":"cve-program:CVE-2023-39956","identifiers":["CVE-2023-39956"]},"retained":false,"historicalAffected":[]},{"revision":"05e87cafea5b49f6acd6057176a760a3","observedAt":"2026-11-19T02:35:46.786+00:00","statement":{"source":"euvd","id":"EUVD-2023-2462","aliases":["CVE-2023-39956","GHSA-7x97-j373-85x5"],"title":"Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Electron apps that are launched as command line executables are impacted.   Specifically this issue can only be exploited if th…","description":"Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Electron apps that are launched as command line executables are impacted.   Specifically this issue can only be exploited if the following conditions are met: 1. The app is launched with an attacker-controlled working directory and 2. The attacker has the ability to write files to that working directory. This makes the risk quite low, in fact normally issues of this kind are considered outside of our threat model as similar to Chromium we exclude Physically Local Attacks but given the ability for this issue to bypass certain protections like ASAR Integrity it is being treated with higher importance.  This issue has been fixed in versions:`26.0.0-beta.13`, `25.4.1`, `24.7.1`, `23.3.13`, and `22.3.19`. There are no app side workarounds, users must update to a patched version of Electron.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","score":6.1,"severity":null}],"references":["https://github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2023-2462","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Sep 6, 2023, 8:09:33 PM","dateUpdated":"Sep 26, 2024, 3:17:59 PM"},"relatedAdvisories":[{"id":"WID-SEC-W-2023-2333","title":"Microsoft Developer Tools: Mehrere Schwachstellen","vulnerabilityIds":["CVE-2023-39956","CVE-2023-38155","CVE-2023-36799","CVE-2023-36796","CVE-2023-36794","CVE-2023-36793","CVE-2023-36792","CVE-2023-36788","CVE-2023-36759","CVE-2023-36758","CVE-2023-36742","CVE-2023-33136"]}],"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-2023-2462","identifiers":["EUVD-2023-2462","CVE-2023-39956","GHSA-7x97-j373-85x5"]},"retained":false,"historicalAffected":[]},{"revision":"b45c2d3ee07b45c2b4000d2b6497a619","observedAt":"2026-10-24T22:17:22.004+00:00","statement":{"source":"nvd","id":"CVE-2023-39956","aliases":[],"title":"Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Electron apps that are launched as command line executables are impacted.   Specifically this issue can only be exploited if th…","description":"Electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS. Electron apps that are launched as command line executables are impacted.   Specifically this issue can only be exploited if the following conditions are met: 1. The app is launched with an attacker-controlled working directory and 2. The attacker has the ability to write files to that working directory. This makes the risk quite low, in fact normally issues of this kind are considered outside of our threat model as similar to Chromium we exclude Physically Local Attacks but given the ability for this issue to bypass certain protections like ASAR Integrity it is being treated with higher importance.  This issue has been fixed in versions:`26.0.0-beta.13`, `25.4.1`, `24.7.1`, `23.3.13`, and `22.3.19`. There are no app side workarounds, users must update to a patched version of Electron.","state":0,"publishedAt":"2023-09-06T21:15:13.217+00:00","modifiedAt":"2026-06-17T06:13:01.64+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","score":6.1,"severity":"MEDIUM"},{"system":"CVSS 3.1 · nvd@nist.gov · Primary","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","score":6.6,"severity":"MEDIUM"}],"references":["https://github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2023-39956","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Modified","weaknesses":["CWE-94"],"productCriteria":["cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:alpha1:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:alpha2:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:alpha3:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:alpha4:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:alpha5:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:alpha6:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:alpha7:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:alpha8:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta1:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta10:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta11:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta12:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta2:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta3:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta4:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta5:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta6:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta7:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta8:*:*:*:node.js:*:*","cpe:2.3:a:electronjs:electron:26.0.0:beta9:*:*:*:node.js:*:*"],"sourceDates":{"published":"2023-09-06T21:15:13.217","lastModified":"2026-06-17T06:13:01.640"},"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-2023-39956","identifiers":["CVE-2023-39956"]},"retained":false,"historicalAffected":[]},{"revision":"db639199208d43bf835dd7730ccff444","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-7x97-j373-85x5","aliases":["CVE-2023-39956"],"title":"Electron vulnerable to out-of-package code execution when launched with arbitrary cwd","description":"### Impact\nApps that are launched as command line executables are impacted.  E.g. if your app exposes itself in the path as `myapp --help`\n\nSpecifically this issue can only be exploited if the following conditions are met:\n* Your app is launched with an attacker-controlled working directory\n* The attacker has the ability to write files to that working directory\n\nThis makes the risk quite low, in fact normally issues of this kind are considered outside of our threat model as similar to Chromium we exclude [Physically Local Attacks](https://github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5#:~:text=Physically%20Local%20Attacks) but given the ability for this issue to bypass certain protections like ASAR Integrity it is being treated with higher importance.  Please bear this in mind when reporting similar issues in the future.\n\n### Workarounds\nThere are no app side workarounds, you must update to a patched version of Electron.\n\n### Fixed Versions\n* `26.0.0-beta.13`\n* `25.5.0`\n* `24.7.1`\n* `23.3.13`\n* `22.3.19`\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":"2023-09-06T19:51:33+00:00","modifiedAt":"2026-09-10T03:49:57.8664672+00:00","affected":[{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"22.3.19"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"23.0.0-alpha.1"},{"kind":"fixed","version":"23.3.13"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"24.0.0-alpha.1"},{"kind":"fixed","version":"24.7.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"25.0.0-alpha.1"},{"kind":"fixed","version":"25.5.0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"electron","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"26.0.0-alpha.1"},{"kind":"fixed","version":"26.0.0-beta.13"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5","https://nvd.nist.gov/vuln/detail/CVE-2023-39956","https://github.com/electron/electron"],"sourceUrl":"https://github.com/advisories/GHSA-7x97-j373-85x5","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-7x97-j373-85x5","identifiers":["GHSA-7x97-j373-85x5","CVE-2023-39956"]},"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-19T04:24:37.1903365+00:00","complete":true,"records":1786,"lastAttemptAt":"2026-11-19T04:24:37.1903365+00:00","lastSuccessAt":"2026-11-19T04:24:37.372166+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:37.3721666+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-e55c589538e0700b45c7d6d41fe1447a79199283262c371c864535c791a040b9-0e69c6613585444f641c92f526100c36dd9cd3e99fef2d7247efc88cf506728d","complete":true,"records":428229,"lastAttemptAt":"2026-11-19T04:22:50.7413942+00:00","lastSuccessAt":"2026-11-19T04:22:50.7221018+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:22:50.7413942+00:00","snapshotPublishedAt":"2026-11-19T03:23:50+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-eed1ef18663c45929f7d7e7a714a8e59","complete":false,"records":13861,"lastAttemptAt":"2026-11-19T04:31:06.4268449+00:00","lastSuccessAt":"2026-11-19T04:31:06.423+00:00","error":"148 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-19T04:31:06.423+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13703,"expectedIdentifiers":13908,"failedIdentifiers":148},{"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-19T04:24:37.1903365+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-19T04:24:37.1903365+00:00","lastSuccessAt":"2026-11-19T04:24:38.0697004+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:38.0697013+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-84b4b212d7ef41cb9ec24b71e9d8e5d8","complete":true,"records":13873,"lastAttemptAt":"2026-11-19T04:24:39.3964736+00:00","lastSuccessAt":"2026-11-19T04:24:39.391+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:39.391+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13908,"expectedIdentifiers":13908,"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-76574c95b6792d47ba90af64983ed5843633f14426346d676016e94a5f383202","complete":true,"records":9963,"lastAttemptAt":"2026-11-19T04:24:37.034158+00:00","lastSuccessAt":"2026-11-19T01:24:31.4213722+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:37.034158+00:00","snapshotPublishedAt":"2026-11-19T01:03:15+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-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-19T04:22:50.8981544+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:22:50.8981544+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+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-c0d9c71c6fa06d617f979e7bec0d97aca70ca5aea1558184002f8e44516f2fac","complete":true,"records":3177,"lastAttemptAt":"2026-11-19T04:24:37.1431899+00:00","lastSuccessAt":"2026-11-18T21:25:09.5127964+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:37.1431899+00:00","snapshotPublishedAt":"2026-11-18T21:18:06+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-2556fa291ec863b7fd77332e55dcff5569878e06b48ea32c182e52878cdd1ce8","complete":true,"records":232702,"lastAttemptAt":"2026-11-19T04:24:36.8996689+00:00","lastSuccessAt":"2026-11-19T04:24:35.8955272+00:00","error":null,"lastVerifiedAt":"2026-11-19T04:24:36.8996689+00:00","snapshotPublishedAt":"2026-11-19T03:33:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}