Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. electron
  4. ›
  5. CVE-2026-70603

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

August 5, 2026

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. Node’s fs APIs already reject paths containing null bytes, so apps that call fs.existsSync(), fs.stat(), or similar before shell.openPath() are not affected. Apps that do not call shell.openPath() with untrusted input are not affected.

References

  • github.com/advisories/GHSA-5c9j-mhmv-5xgx
  • github.com/electron/electron/security/advisories/GHSA-5c9j-mhmv-5xgx
  • nvd.nist.gov/vuln/detail/CVE-2026-70603

Code Behaviors & Features

Detect and mitigate CVE-2026-70603 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 39.8.6, all versions starting from 40.0.0-alpha.1 before 40.9.0, all versions starting from 41.0.0-alpha.1 before 41.1.1, all versions starting from 42.0.0-alpha.1 before 42.0.0-beta.1

Fixed versions

  • 39.8.6
  • 40.9.0
  • 41.1.1
  • 42.0.0-beta.1

Solution

Upgrade to versions 39.8.6, 40.9.0, 41.1.1, 42.0.0-beta.1 or above.

Impact 6 MEDIUM

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-158: Improper Neutralization of Null Byte or NUL Character
  • CWE-20: Improper Input Validation

Source file

npm/electron/CVE-2026-70603.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:19:24 +0000.