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 package | Versions | Reported 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.0 | CVE 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.6 | GitHub Advisory Database |
| electronjs electron | before 40.10.6, from 41.0.0 up to 41.9.1, from 42.0.0 up to 42.5.1, 43.0.0 | NVD |
All scores
| GitHub_M | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N |
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N |
Classification
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.042.5.141.9.140.10.6
For more information
If you have any questions or comments about this advisory, email Electron at security@electronjs.org
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-70606 changed 2026-08-05 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-r4w5-6pfg-jxp5 changed 2026-08-05 | CC-BY-4.0 |
| NVD | CVE-2026-70606 changed 2026-10-08 | Public domain |