What’s Vulnerable › Vulnerabilities
CVE-2026-70605: Electron: HTTP redirect followed into local file loader
- Severity: medium (CVSS 5.9 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-08-05 · updated 2026-10-08
- Weakness: CWE-918
Description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3, when following HTTP redirects, net.fetch() and net.request() did not restrict which schemes a redirect could target. A remote server could redirect a request to a local resource, and if the app returns or forwards the response body, local file contents could be disclosed. Apps are only affected if they make net requests to attacker-influenced URLs with redirects followed and expose the response body. This issue is fixed in versions 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3.
Affected products
- electron: before 39.8.8; from 40.0.0 before 40.9.0; from 41.0.0 before 41.2.1; 42.0.0-alpha1, 42.0.0-alpha2, 42.0.0-alpha3, 42.0.0-alpha4, 42.0.0-alpha5, 42.0.0-alpha6 (+2) — fixed in 39.8.8, 40.9.0, 41.2.1
How to fix
Upgrade to a fixed version: electron 39.8.8, 40.9.0, 41.2.1. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-70605 or the next vulnerability affects your stack