Improper Neutralization of Null Byte or NUL Character The advisory has been revoked - it doesn't affect any version of package electron/electron  (opens in a new tab)


Threat Intelligence

EPSS
0.13% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-ELECTRONELECTRON-18563322
  • published6 Aug 2026
  • disclosed5 Aug 2026
  • creditYassine Bengana, Maxence Schmitt

Introduced: 5 Aug 2026

CVE-2026-70603  (opens in a new tab)
CWE-158  (opens in a new tab)

How to fix?

Upgrade electron/electron to version 39.8.6, 40.9.0, 41.1.1, 42.0.0-beta.1 or higher.

Amendment

This was deemed not a vulnerability.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Null Byte or NUL Character via the shell.openPath function. An attacker can bypass file path validation by supplying a path containing an embedded null byte, which may result in opening a different file than intended.

Note: This is only exploitable if paths derived from untrusted input are passed to shell.openPath and only string-based validation is performed without a filesystem check.

Workaround

This vulnerability can be mitigated by rejecting any path containing a null byte before passing it to shell.openPath.

References