CVE-2023-39956Electronjs Electron
Medium 6.6
Follow: this CVE · Electronjs · Electronjs Electron We alert you by email or Slack (account required).
- Priority
- 40
- CVSS 3.1
- 6.6
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 32
- Auth required
- Yes
- Published
- Sep 6, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:L
What happens
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.
What to do
- Apply the vendor's security update for Electron.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | electron |
< 22.3.19 |
22.3.19 |
npm install electron@22.3.19 |
| npm | electron |
≥ 23.0.0-alpha.1 < 23.3.13 |
23.3.13 |
npm install electron@23.3.13 |
| npm | electron |
≥ 24.0.0-alpha.1 < 24.7.1 |
24.7.1 |
npm install electron@24.7.1 |
| npm | electron |
≥ 25.0.0-alpha.1 < 25.5.0 |
25.5.0 |
npm install electron@25.5.0 |
| npm | electron |
≥ 26.0.0-alpha.1 < 26.0.0-beta.13 |
26.0.0-beta.13 |
npm install electron@26.0.0-beta.13 |
Per OSV / GitHub Advisories (GHSA-7x97-j373-85x5). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| electronjs | electron | < 22.3.9 |
| electronjs | electron | ≥ 23.0.0 < 23.3.13 |
| electronjs | electron | ≥ 24.0.0 < 24.7.1 |
| electronjs | electron | ≥ 25.0.0 < 25.5.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
| electronjs | electron | 26.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Vendor Advisory