CVE-2026-70606
JSON

5.9medium

Electron: ProtocolResponse.url reuses the default session cache instead of the registering session

Severity
5.9medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.16% (higher than 5% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-r4w5-6pfg-jxp5

Description

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 40.10.6, 41.9.1, 42.5.1, and 43.0.0, when a custom protocol handler returned a ProtocolResponse with a url and no session, Electron made the upstream request through defaultSession instead of the session that handled the protocol. A cached response could then be reused across otherwise isolated session partitions. Apps that use ProtocolResponse.url, omit ProtocolResponse.session, and rely on separate sessions to isolate content are affected. This issue is fixed in versions 40.10.6, 41.9.1, 42.5.1, and 43.0.0.

Affected

Product or packageVersionsReported by
electron electron>= 40.0.0-alpha.1, < 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.0CVE List
electron (npm)from 43.0.0-alpha.1 before 43.0.0, from 42.0.0-alpha.1 before 42.5.1, from 41.0.0-alpha.1 before 41.9.1, from 40.0.0-alpha.1 before 40.10.6GitHub Advisory Database
electronjs electronbefore 40.10.6, from 41.0.0 up to 41.9.1, from 42.0.0 up to 42.5.1, 43.0.0NVD

All scores

GitHub_M5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N
GitHub5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N

Classification

CWE-668

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 40.10.6, 41.9.1, 42.5.1, and 43.0.0, when a custom protocol handler returned a ProtocolResponse with a url and no session, Electron made the upstream request through defaultSession instead of the session that handled the protocol. A cached response could then be reused across otherwise isolated session partitions. Apps that use ProtocolResponse.url, omit ProtocolResponse.session, and rely on separate sessions to isolate content are affected. This issue is fixed in versions 40.10.6, 41.9.1, 42.5.1, and 43.0.0.

GitHub Advisory Database
Impact

When a custom protocol handler returned a ProtocolResponse with a url and no session, Electron made the upstream request through defaultSession instead of the session that handled the protocol. A cached response could then be reused across otherwise isolated session partitions.

Apps that use ProtocolResponse.url, omit ProtocolResponse.session, and rely on separate sessions to isolate content are affected. Apps that set an explicit session, or that do not isolate content across sessions, are not affected.

Workarounds

Set ProtocolResponse.session explicitly so the request uses the intended session's cache.

Fixed Versions
  • 43.0.0
  • 42.5.1
  • 41.9.1
  • 40.10.6
For more information

If you have any questions or comments about this advisory, email Electron at security@electronjs.org

References

Sources

SourceRecordLicence
CVE ListCVE-2026-70606 changed 2026-08-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-r4w5-6pfg-jxp5 changed 2026-08-05CC-BY-4.0
NVDCVE-2026-70606 changed 2026-10-08Public domain