Back to CVE records
Medium 6.0Published Aug 5, 2026

CVE-2026-70603Electron: shell.openPath path validation bypass via embedded null byte

Updated under an hour ago ()

Does this affect you?

It affects electron and 1 other product. Add what you run to find out whether that includes you.

No exploitation reported and no EPSS estimate yet.

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.

CVSS
6.0 MEDIUM (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
Weakness (CWE)
CWE-20, CWE-158
Known exploited
Not in CISA's KEV catalog
EPSS (exploitation in the next 30 days)
Not loaded for this CVE
Assigned by
GitHub_M
NVD analysis
Analyzed
Record last updated
Aug 6, 2026
First seen by InfoSec Signals
Oct 9, 2026

Affected products

Affected products
electron electron
electron:electron (from the name)
before 39.8.6; from 40.0.0-alpha.1, < 40.9.0; from 41.0.0-alpha.1, < 41.1.1; from 42.0.0-alpha.1, < 42.0.0-beta.1
CNA record
electronjs electron
electronjs:electron
before 39.8.6; from 40.0.0 before 40.9.0; from 41.0.0 before 41.1.1; 42.0.0; 42.0.0; 42.0.0; 42.0.0; 42.0.0; and 2 more ranges
NVD

References

  • x-refsource-confirm, vendor-advisory

The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.

Your cookie choices
We use essential cookies to run this site, and, only with your consent, an advertising cookie from Google to measure whether our ads lead to sign-ups and subscriptions. See our for details.