{"schemaVersion":3,"id":"CVE-2023-39956","aliases":["GHSA-7x97-j373-85x5"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2023-09-06T20:09:33.185Z","modified":"2024-09-26T15:17:59.795Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.6,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":6.1,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L","exploitability":3.3,"impact":7.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.6,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00491,"percentile":0.4121,"severity":"low","asOf":"2026-10-21T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-21T00:00:00.000Z","baselineScore":0.00491},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00491,"percentile":0.4121}],"last30":[{"date":"2026-09-21T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00491,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00491,"percentile":0.4121}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-94","name":"Improper Control of Generation of Code ('Code Injection')","description":"The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/94.html"}],"affected":[{"vendor":"electron","product":"electron","name":"electron","label":"electron","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 22.3.19","noFixRecorded":false,"fixedIn":null},{"text":"≥ 23.0.0, < 23.3.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 24.0.0, < 24.7.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 25.0.0, < 25.4.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 26.0.0-beta.1, < 26.0.0-beta.13","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 22.3.19 | ≥ 23.0.0, < 23.3.13 | ≥ 24.0.0, < 24.7.1 | ≥ 25.0.0, < 25.4.1 | ≥ 26.0.0-beta.1, < 26.0.0-beta.13","eol":null,"hubHref":"/vendor/electron/electron"},{"vendor":"electronjs","product":"electron","name":"electron","label":"electron","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 22.3.9","noFixRecorded":false,"fixedIn":null},{"text":"≥ 23.0.0, < 23.3.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 24.0.0, < 24.7.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 25.0.0, < 25.5.0","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:alpha1","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:alpha2","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:alpha3","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:alpha4","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:alpha5","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:alpha6","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:alpha7","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:alpha8","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta1","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta10","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta11","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta12","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta2","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta3","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta4","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta5","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta6","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta7","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta8","noFixRecorded":false,"fixedIn":null},{"text":"26.0.0:beta9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 22.3.9 | ≥ 23.0.0, < 23.3.13 | ≥ 24.0.0, < 24.7.1 | ≥ 25.0.0, < 25.5.0 | 26.0.0:alpha1 | 26.0.0:alpha2 | 26.0.0:alpha3 | 26.0.0:alpha4 | 26.0.0:alpha5 | 26.0.0:alpha6 | 26.0.0:alpha7 | 26.0.0:alpha8 | 26.0.0:beta1 | 26.0.0:beta10 | 26.0.0:beta11 | 26.0.0:beta12 | 26.0.0:beta2 | 26.0.0:beta3 | 26.0.0:beta4 | 26.0.0:beta5 | 26.0.0:beta6 | 26.0.0:beta7 | 26.0.0:beta8 | 26.0.0:beta9","eol":{"isEol":true,"eolDate":"2024-02-19T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"26","label":"26","eolFrom":"2024-02-19T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"26.6.10"},"product":{"name":"electron","label":"Electron","category":"framework"}},"hubHref":"/vendor/electronjs/electron"},{"vendor":"Npm","product":"electron","name":"electron","label":"electron","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/electron","purlType":"npm","versions":[{"text":"< 22.3.19","noFixRecorded":false,"fixedIn":null},{"text":"≥ 23.0.0-alpha.1, < 23.3.13","noFixRecorded":false,"fixedIn":null},{"text":"≥ 24.0.0-alpha.1, < 24.7.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 25.0.0-alpha.1, < 25.5.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 26.0.0-alpha.1, < 26.0.0-beta.13","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 22.3.19 | ≥ 23.0.0-alpha.1, < 23.3.13 | ≥ 24.0.0-alpha.1, < 24.7.1 | ≥ 25.0.0-alpha.1, < 25.5.0 | ≥ 26.0.0-alpha.1, < 26.0.0-beta.13","eol":null,"hubHref":null}],"affectedCount":3,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5","label":"github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39956","label":"nvd.nist.gov/vuln/detail/CVE-2023-39956","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/electron/electron","label":"github.com/electron/electron","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-09-06T20:09:33.185Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-26T15:17:59.795Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T22:06:28.627Z","stale":false,"partial":false}}