Read the docs
TI-2026-49320 Aliases CVE-2026-70603GHSA-5c9j-mhmv-5xgx

Electron: shell.openPath path validation bypass via embedded null byte

Priority LOW 28CWE-158Published · Updated

Key facts

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

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.

Summary

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.6, 40.9.0, 41.1.1, and 42.0.0-beta.1, shell.openPath() did not reject paths containing embedded null bytes. Apps that perform string-only validation of file paths, for example checking the file extension, before passing them to shell.openPath() could be bypassed, allowing an attacker-controlled path to open a different file than the one that passed validation. Apps are only affected if they pass paths derived from untrusted input to shell.openPath() and rely on string-based validation without a filesystem check. This issue is fixed in versions 39.8.6, 40.9.0, 41.1.1, and 42.0.0-beta.1.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00132 2nd percentileScored 2026-11-07
Fix Fixed electron (electron): 39.8.6, 40.9.0, 41.1.1 +1electron (npm): 42.0.0-beta.1, 41.1.1, 40.9.0 +1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

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 39.8.6; 40.0.0-alpha.1 to before 40.9.0; 41.0.0-alpha.1 to before 41.1.1; 42.0.0-alpha.1 to before 42.0.0-beta.139.8.6, 40.9.0, 41.1.1, 42.0.0-beta.1Patch availableCNA
—electron (npm)42.0.0-alpha.1 to before 42.0.0-beta.142.0.0-beta.1Patch availableGHSA-5c9j-mhmv-5xgx
—electron (npm)41.0.0-alpha.1 to before 41.1.141.1.1Patch availableGHSA-5c9j-mhmv-5xgx
—electron (npm)40.0.0-alpha.1 to before 40.9.040.9.0Patch availableGHSA-5c9j-mhmv-5xgx
—electron (npm)before 39.8.639.8.6Patch availableGHSA-5c9j-mhmv-5xgx
  • electron Vendorelectron Affected before 39.8.6; 40.0.0-alpha.1 to before 40.9.0; 41.0.0-alpha.1 to before 41.1.1; 42.0.0-alpha.1 to before 42.0.0-beta.1 Fixed in 39.8.6, 40.9.0, 41.1.1, 42.0.0-beta.1 Patch available CNA
  • electron (npm) Vendor— Affected 42.0.0-alpha.1 to before 42.0.0-beta.1 Fixed in 42.0.0-beta.1 Patch available GHSA-5c9j-mhmv-5xgx
  • electron (npm) Vendor— Affected 41.0.0-alpha.1 to before 41.1.1 Fixed in 41.1.1 Patch available GHSA-5c9j-mhmv-5xgx
  • electron (npm) Vendor— Affected 40.0.0-alpha.1 to before 40.9.0 Fixed in 40.9.0 Patch available GHSA-5c9j-mhmv-5xgx
  • electron (npm) Vendor— Affected before 39.8.6 Fixed in 39.8.6 Patch available GHSA-5c9j-mhmv-5xgx

CPE configurations NVD · 8

CPEVersionsRoleVendor
cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*before 39.8.6; 40.0.0 to before 40.9.0; 41.0.0 to before 41.1.1VulnerableElectronjs
cpe:2.3:a:electronjs:electron:42.0.0:alpha1:*:*:*:node.js:*:*42.0.0 alpha1VulnerableElectronjs
cpe:2.3:a:electronjs:electron:42.0.0:alpha2:*:*:*:node.js:*:*42.0.0 alpha2VulnerableElectronjs
cpe:2.3:a:electronjs:electron:42.0.0:alpha3:*:*:*:node.js:*:*42.0.0 alpha3VulnerableElectronjs
cpe:2.3:a:electronjs:electron:42.0.0:alpha4:*:*:*:node.js:*:*42.0.0 alpha4VulnerableElectronjs
cpe:2.3:a:electronjs:electron:42.0.0:alpha5:*:*:*:node.js:*:*42.0.0 alpha5VulnerableElectronjs
cpe:2.3:a:electronjs:electron:42.0.0:alpha6:*:*:*:node.js:*:*42.0.0 alpha6VulnerableElectronjs
cpe:2.3:a:electronjs:electron:42.0.0:beta1:*:*:*:node.js:*:*42.0.0 beta1VulnerableElectronjs
  • cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:* Versions before 39.8.6; 40.0.0 to before 40.9.0; 41.0.0 to before 41.1.1 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:42.0.0:alpha1:*:*:*:node.js:*:* Versions 42.0.0 alpha1 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:42.0.0:alpha2:*:*:*:node.js:*:* Versions 42.0.0 alpha2 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:42.0.0:alpha3:*:*:*:node.js:*:* Versions 42.0.0 alpha3 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:42.0.0:alpha4:*:*:*:node.js:*:* Versions 42.0.0 alpha4 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:42.0.0:alpha5:*:*:*:node.js:*:* Versions 42.0.0 alpha5 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:42.0.0:alpha6:*:*:*:node.js:*:* Versions 42.0.0 alpha6 Vulnerable ·Electronjs
  • cpe:2.3:a:electronjs:electron:42.0.0:beta1:*:*:*:node.js:*:* Versions 42.0.0 beta1 Vulnerable ·Electronjs

Remediation

  • Fix · CNA electron (electron) Fixed in 39.8.6, 40.9.0, 41.1.1, 42.0.0-beta.1
  • Fix · GHSA-5c9j-mhmv-5xgx electron (npm) Fixed in 42.0.0-beta.1 Advisory →
  • Fix · GHSA-5c9j-mhmv-5xgx electron (npm) Fixed in 41.1.1 Advisory →
  • Fix · GHSA-5c9j-mhmv-5xgx electron (npm) Fixed in 40.9.0 Advisory →
  • Fix · GHSA-5c9j-mhmv-5xgx electron (npm) Fixed in 39.8.6 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-70603
  2. 2026-10-03 Alias added: GHSA-5c9j-mhmv-5xgx
  3. 2026-11-03 CISA SSVC decision points changed

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