CVE-2026-70606: Electron ProtocolResponse.url Reuses The Default Session Vulnerability
MODERATECVE-2026-70606 is a MODERATE (CVSS 5.9) protocolresponse.url reuses the default session vulnerability (CWE-668: Exposure of Resource to Wrong Sphere) affecting Electron libraries in the npm ecosystem. The issue involves protocolresponse.url reuses the default session cache instead of the registering session. Remediation is available by upgrading affected packages to version 43.0.0, 42.5.1, 41.9.1, 40.10.6.
CVE-2026-70606 at a Glance
Security Impact
CVSS: 5.9
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N).
How to Fix CVE-2026-70606
To remediate this vulnerability, upgrade all affected Electron dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install electron@43.0.0
npm install electron@42.5.1
npm install electron@41.9.1
npm install electron@40.10.6
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls electron
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-70606, inspect your project dependencies using npm:
npm ls electron
Analyze the terminal output to locate any version of Electron in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 43.0.0), your application is affected.
Note: The npm ls electron command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-668: Exposure of Resource to Wrong Sphere, where the product exposes a resource to the wrong control sphere, providing unintended actors with inappropriate access to the resource. In Electron, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-70606 Affected Electron Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
electron
|
npm |
≥ 43.0.0-alpha.1
< 43.0.0
|
43.0.0
|
|
electron
|
npm |
≥ 42.0.0-alpha.1
< 42.5.1
|
42.5.1
|
|
electron
|
npm |
≥ 41.0.0-alpha.1
< 41.9.1
|
41.9.1
|
|
electron
|
npm |
≥ 40.0.0-alpha.1
< 40.10.6
|
40.10.6
|
References
Frequently Asked Questions
What is CVE-2026-70606?
Which Electron versions are affected?
What version fixes CVE-2026-70606?
Is electron affected?
What is the CVSS score of CVE-2026-70606?
What CWE is associated with CVE-2026-70606?
How can I check npm dependencies for CVE-2026-70606?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-r4w5-6pfg-jxp5",
"modified" : "2026-08-05T16:07:59Z",
"published" : "2026-08-05T16:07:59Z",
"aliases" : [ "CVE-2026-70606" ],
"summary" : "Electron: ProtocolResponse.url reuses the default session cache instead of the registering session",
"details" : "### Impact\nWhen 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.\n\nApps 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.\n\n### Workarounds\nSet `ProtocolResponse.session` explicitly so the request uses the intended session's cache.\n\n### Fixed Versions\n* `43.0.0`\n* `42.5.1`\n* `41.9.1`\n* `40.10.6`\n\n### For more information\nIf you have any questions or comments about this advisory, email Electron at [security@electronjs.org](mailto:security@electronjs.org)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "electron"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "43.0.0-alpha.1"
}, {
"fixed" : "43.0.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "electron"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "42.0.0-alpha.1"
}, {
"fixed" : "42.5.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "electron"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "41.0.0-alpha.1"
}, {
"fixed" : "41.9.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "electron"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "40.0.0-alpha.1"
}, {
"fixed" : "40.10.6"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/electron/electron/security/advisories/GHSA-r4w5-6pfg-jxp5"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/electron/electron"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-668" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-08-05T16:07:59Z",
"nvd_published_at" : null
}
}