CVE-2026-70603
Electron: shell.openPath path validation bypass via embedded null byte
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.
INFO
Published Date :
Aug. 5, 2026, 4:17 p.m.
Last Modified :
Aug. 5, 2026, 7:17 p.m.
Remotely Exploit :
No
Source :
[email protected]
Affected Products
The following products are affected by CVE-2026-70603
vulnerability.
Even if cvefeed.io is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
No affected product recoded yet
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | MEDIUM | MITRE-CVE |
Solution
- Update Electron to version 39.8.6 or later.
- Implement filesystem checks for file paths.
- Avoid string-only validation for file paths.
- Sanitize all untrusted input paths.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-70603.
| URL | Resource |
|---|---|
| https://github.com/electron/electron/security/advisories/GHSA-5c9j-mhmv-5xgx |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-70603 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-70603
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-70603 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-70603 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Aug. 05, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2026-70603', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-08-05T18:14:50.365146Z'} -
New CVE Received by [email protected]
Aug. 05, 2026
Action Type Old Value New Value Added Affected [{'vendor': 'electron', 'product': 'electron', 'versions': [{'status': 'affected', 'version': '< 39.8.6'}, {'status': 'affected', 'version': '>= 40.0.0-alpha.1, < 40.9.0'}, {'status': 'affected', 'version': '>= 41.0.0-alpha.1, < 41.1.1'}, {'status': 'affected', 'version': '>= 42.0.0-alpha.1, < 42.0.0-beta.1'}]}] Added 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. Added CVSS V3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N Added CWE CWE-20 Added CWE CWE-158 Added Reference https://github.com/electron/electron/security/advisories/GHSA-5c9j-mhmv-5xgx