Authentication Bypass by Primary Weakness Affecting electron package, versions >=40.0.0-alpha.2 <40.10.6>=41.0.0-alpha.1 <41.9.1>=42.0.0-alpha.1 <42.5.1>=43.0.0-alpha.1 <43.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (6th 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-JS-ELECTRON-18563352
  • published6 Aug 2026
  • disclosed5 Aug 2026
  • creditProtocolResponse.url

Introduced: 5 Aug 2026

NewCVE-2026-70606  (opens in a new tab)
CWE-305  (opens in a new tab)

How to fix?

Upgrade electron to version 40.10.6, 41.9.1, 42.5.1, 43.0.0 or higher.

Overview

electron is a framework which lets you write cross-platform desktop applications using JavaScript, HTML and CSS.

Affected versions of this package are vulnerable to Authentication Bypass by Primary Weakness in the ProtocolResponse.url when a custom protocol handler omits the session parameter. An attacker can access cached responses from other session partitions by triggering requests that reuse the default session cache instead of the intended isolated session.

Note: This is only exploitable if applications use ProtocolResponse.url, do not set ProtocolResponse.session, and rely on session partitioning for content isolation.

Workaround

This vulnerability can be mitigated by explicitly setting the ProtocolResponse.session parameter so that requests use the correct session's cache.

CVSS Base Scores

version 4.0
version 3.1