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

- Priority: **Routine**
- Reason: Not severe (CVSS 6, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-08-05 · Modified: 2026-11-03
- Aliases: GHSA-5c9j-mhmv-5xgx
- Record: https://cvemate.com/vulnerability/CVE-2026-70603 · JSON: https://cvemate.com/vulnerability/CVE-2026-70603/json

## Description

```text
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.
```

## Signals

- CVSS: 6 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N
- EPSS: 0.128%, percentile 2.61%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- electron electron: \< 39.8.6 \| ≥ 40.0.0-alpha.1, \< 40.9.0 \| ≥ 41.0.0-alpha.1, \< 41.1.1 \| ≥ 42.0.0-alpha.1, \< 42.0.0-beta.1
- electronjs electron: \< 39.8.6 \| ≥ 40.0.0, \< 40.9.0 \| ≥ 41.0.0, \< 41.1.1 \| 42.0.0:alpha1 \| 42.0.0:alpha2 \| 42.0.0:alpha3 \| 42.0.0:alpha4 \| 42.0.0:alpha5 \| 42.0.0:alpha6 \| 42.0.0:beta1
- Npm electron (Npm): ≥ 42.0.0-alpha.1, \< 42.0.0-beta.1 \| ≥ 41.0.0-alpha.1, \< 41.1.1 \| ≥ 40.0.0-alpha.1, \< 40.9.0 \| \< 39.8.6

## References

- <https://github.com/electron/electron/security/advisories/GHSA-5c9j-mhmv-5xgx>
- <https://github.com/electron/electron>

---

Data as of 2026-12-05T08:50:04.050Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
