{"cve":"CVE-2023-39956","nvd":{"published":"2023-09-06T21:15:13.217","modified":"2026-06-17T06:13:01.640","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L","score":6.6},"cwes":["CWE-94"],"references":["https://github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5","https://github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5"],"products":["electronjs:electron"],"source":"nvd","synced_at":"2026-10-19T21:39:24.235896374+00:00"},"epss":{"cve":"CVE-2023-39956","score":0.00491,"percentile":0.42224,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-7x97-j373-85x5","url":"https://osv.dev/vulnerability/GHSA-7x97-j373-85x5","summary":"Electron vulnerable to out-of-package code execution when launched with arbitrary cwd","modified":"2026-09-10T03:49:57.866467216Z","packages":[{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":["<22.3.19"],"fixed":["22.3.19"]},{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=23.0.0-alpha.1 <23.3.13"],"fixed":["23.3.13"]},{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=24.0.0-alpha.1 <24.7.1"],"fixed":["24.7.1"]},{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=25.0.0-alpha.1 <25.5.0"],"fixed":["25.5.0"]},{"ecosystem":"npm","name":"electron","purl":"pkg:npm/electron","ranges":[">=26.0.0-alpha.1 <26.0.0-beta.13"],"fixed":["26.0.0-beta.13"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}