CVE-2023-39956: electron Code Injection
Vulnerability summary
CVE-2023-39956 is a medium (CVSS 6.6) Code Injection vulnerability in electron. EPSS estimates a 0.49% chance of exploitation in the next 30 days, higher than 41.2% of scored vulnerabilities.
Timeline
- 06-09-2023PublishedVulnerability first disclosed.
- 26-09-2024Last modifiedVulnerability information updated.
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 metrics
3 scores · 3 sources · 1 version- CVE.orgCNA6.1MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:LDiffers
- OSV · NpmEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:LDiffers
EPSS trend
Probability
0.49%
Chance of exploitation in the next 30 days
Percentile
41%
Versus all other CVEs
30-day change
0.00 pp
From 0.49% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Electron1 product
- electron< 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
Electronjs1 product
- electronEOL< 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
Npm1 product
- electron< 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
3 vendors · 3 products
References
3 links- github.com/electron/electron/security/advisories/GHSA-7x97-j373-85x5X Refsource CONFIRMWEBVendor Advisory
- github.com/electron/electronPACKAGE