CVE-2026-70603 Details
Description
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.
A vulnerability exists in Electron versions prior to 39.8.6, 40.9.0, 41.1.1, and 42.0.0-beta.1, where the shell.openPath() function failed to properly handle paths containing embedded null bytes. This oversight allowed applications that relied solely on string-based validation of file paths—such as those checking file extensions—to be manipulated. An attacker could craft a path that bypassed validation, leading to the opening of a different file than intended. The issue affects applications that pass untrusted input-derived paths to shell.openPath() without performing a filesystem check, as Node's fs APIs reject null byte-containing paths. However, apps that validate paths through fs methods before using shell.openPath() are not vulnerable.
To address this vulnerability, update Electron to version 39.8.6, 40.9.0, 41.1.1, or 42.0.0-beta.1. If an immediate update is not possible, reject any paths containing null bytes before passing them to shell.openPath().
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 5, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/electron/electron/security/advisories/GHSA-5c9j-mhmv-5xgx | [email protected] |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-158 | Improper Neutralization of Null Byte or NUL Character | [email protected] |
| CWE-20 | Improper Input Validation | [email protected] |
Affected Products
No affected product data is available for this CVE.
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 6, 2026 | CVE Modified | CISA-ADP |
| Aug 5, 2026 | CVE Modified | CISA-ADP |
| Aug 5, 2026 | New CVE Received | [email protected] |