Read the docs
TI-2023-20849 Aliases CVE-2023-39956GHSA-7x97-j373-85x5

Electron: Out-of-package code execution when launched with arbitrary cwd

Priority LOW 30CWE-94Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
Low · High · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-94.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00491 42nd percentileScored 2026-11-07
Fix Fixed electron (electron): 22.3.19, 23.3.13, 24.7.1 +2electron (npm): 22.3.19, 23.3.13, 24.7.1 +2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
electronelectronbefore 22.3.19; 23.0.0 to before 23.3.13; 24.0.0 to before 24.7.1; 25.0.0 to before 25.4.1; 26.0.0-beta.1 to before 26.0.0-beta.1322.3.19, 23.3.13, 24.7.1, 25.4.1, 26.0.0-beta.13Patch availableCNA
—electron (npm)before 22.3.1922.3.19Patch availableGHSA-7x97-j373-85x5
—electron (npm)23.0.0-alpha.1 to before 23.3.1323.3.13Patch availableGHSA-7x97-j373-85x5
—electron (npm)24.0.0-alpha.1 to before 24.7.124.7.1Patch availableGHSA-7x97-j373-85x5
—electron (npm)25.0.0-alpha.1 to before 25.5.025.5.0Patch availableGHSA-7x97-j373-85x5
—electron (npm)26.0.0-alpha.1 to before 26.0.0-beta.1326.0.0-beta.13Patch availableGHSA-7x97-j373-85x5
  • electron Vendorelectron Affected before 22.3.19; 23.0.0 to before 23.3.13; 24.0.0 to before 24.7.1; 25.0.0 to before 25.4.1; 26.0.0-beta.1 to before 26.0.0-beta.13 Fixed in 22.3.19, 23.3.13, 24.7.1, 25.4.1, 26.0.0-beta.13 Patch available CNA
  • electron (npm) Vendor— Affected before 22.3.19 Fixed in 22.3.19 Patch available GHSA-7x97-j373-85x5
  • electron (npm) Vendor— Affected 23.0.0-alpha.1 to before 23.3.13 Fixed in 23.3.13 Patch available GHSA-7x97-j373-85x5
  • electron (npm) Vendor— Affected 24.0.0-alpha.1 to before 24.7.1 Fixed in 24.7.1 Patch available GHSA-7x97-j373-85x5
  • electron (npm) Vendor— Affected 25.0.0-alpha.1 to before 25.5.0 Fixed in 25.5.0 Patch available GHSA-7x97-j373-85x5
  • electron (npm) Vendor— Affected 26.0.0-alpha.1 to before 26.0.0-beta.13 Fixed in 26.0.0-beta.13 Patch available GHSA-7x97-j373-85x5

CPE configurations NVD · 21

CPEVersionsRoleVendor
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*before 22.3.9; 23.0.0 to before 23.3.13; 24.0.0 to before 24.7.1; 25.0.0 to before 25.5.0VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:alpha1:*:*:*:node.js:*:*26.0.0 alpha1VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:alpha2:*:*:*:node.js:*:*26.0.0 alpha2VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:alpha3:*:*:*:node.js:*:*26.0.0 alpha3VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:alpha4:*:*:*:node.js:*:*26.0.0 alpha4VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:alpha5:*:*:*:node.js:*:*26.0.0 alpha5VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:alpha6:*:*:*:node.js:*:*26.0.0 alpha6VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:alpha7:*:*:*:node.js:*:*26.0.0 alpha7VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:alpha8:*:*:*:node.js:*:*26.0.0 alpha8VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:beta1:*:*:*:node.js:*:*26.0.0 beta1VulnerableElectronjs
  • cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* Versions before 22.3.9; 23.0.0 to before 23.3.13; 24.0.0 to before 24.7.1; 25.0.0 to before 25.5.0 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:alpha1:*:*:*:node.js:*:* Versions 26.0.0 alpha1 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:alpha2:*:*:*:node.js:*:* Versions 26.0.0 alpha2 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:alpha3:*:*:*:node.js:*:* Versions 26.0.0 alpha3 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:alpha4:*:*:*:node.js:*:* Versions 26.0.0 alpha4 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:alpha5:*:*:*:node.js:*:* Versions 26.0.0 alpha5 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:alpha6:*:*:*:node.js:*:* Versions 26.0.0 alpha6 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:alpha7:*:*:*:node.js:*:* Versions 26.0.0 alpha7 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:alpha8:*:*:*:node.js:*:* Versions 26.0.0 alpha8 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta1:*:*:*:node.js:*:* Versions 26.0.0 beta1 Vulnerable ·Electronjs
Show 11 more CPE
CPEVersionsRoleVendor
cpe:2.3:a:electronjs:electron:26.0.0:beta10:*:*:*:node.js:*:*26.0.0 beta10VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:beta11:*:*:*:node.js:*:*26.0.0 beta11VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:beta12:*:*:*:node.js:*:*26.0.0 beta12VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:beta2:*:*:*:node.js:*:*26.0.0 beta2VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:beta3:*:*:*:node.js:*:*26.0.0 beta3VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:beta4:*:*:*:node.js:*:*26.0.0 beta4VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:beta5:*:*:*:node.js:*:*26.0.0 beta5VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:beta6:*:*:*:node.js:*:*26.0.0 beta6VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:beta7:*:*:*:node.js:*:*26.0.0 beta7VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:beta8:*:*:*:node.js:*:*26.0.0 beta8VulnerableElectronjs
cpe:2.3:a:electronjs:electron:26.0.0:beta9:*:*:*:node.js:*:*26.0.0 beta9VulnerableElectronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta10:*:*:*:node.js:*:* Versions 26.0.0 beta10 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta11:*:*:*:node.js:*:* Versions 26.0.0 beta11 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta12:*:*:*:node.js:*:* Versions 26.0.0 beta12 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta2:*:*:*:node.js:*:* Versions 26.0.0 beta2 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta3:*:*:*:node.js:*:* Versions 26.0.0 beta3 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta4:*:*:*:node.js:*:* Versions 26.0.0 beta4 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta5:*:*:*:node.js:*:* Versions 26.0.0 beta5 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta6:*:*:*:node.js:*:* Versions 26.0.0 beta6 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta7:*:*:*:node.js:*:* Versions 26.0.0 beta7 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta8:*:*:*:node.js:*:* Versions 26.0.0 beta8 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:26.0.0:beta9:*:*:*:node.js:*:* Versions 26.0.0 beta9 Vulnerable ·Electronjs

Remediation

  • Fix · CNA electron (electron) Fixed in 22.3.19, 23.3.13, 24.7.1, 25.4.1, 26.0.0-beta.13
  • Fix · GHSA-7x97-j373-85x5 electron (npm) Fixed in 22.3.19 Advisory →
  • Fix · GHSA-7x97-j373-85x5 electron (npm) Fixed in 23.3.13 Advisory →
  • Fix · GHSA-7x97-j373-85x5 electron (npm) Fixed in 24.7.1 Advisory →
  • Fix · GHSA-7x97-j373-85x5 electron (npm) Fixed in 25.5.0 Advisory →
  • Fix · GHSA-7x97-j373-85x5 electron (npm) Fixed in 26.0.0-beta.13 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-39956
  2. 2026-10-03 Alias added: GHSA-7x97-j373-85x5

References

  • TI-2026-39496 Information disclosure in electron-builder CVSS 4.0HIGH 8.2
  • TI-2024-26621 Code Signing Bypass on Windows in electron-updater < 6.3.0-alpha.6 CVSS 3.1HIGH 7.5
  • TI-2023-09452 Content-Secrity-Policy disabling eval not applied consistently in renderers with sandbox disabled in Electron CVSS 3.1CRITICAL 9.8
  • TI-2026-39157 Electron: Buffer performs incorrect byte length calculations resulting in heap buffer under/overflow CVSS 4.0CRITICAL 9.3
  • TI-2017-09308 GitHub Electron before 1.6.8 allows remote command execution because of a nodeIntegration… CVSS 3.0HIGH 8.1
  • TI-2022-11788 Exposure of Resource to Wrong Sphere in Electron CVSS 3.1CRITICAL 9.8
See all 74 →

Sources