Electron: HTTP redirect followed into local file loader (CVE-2026-70605)
Electron versions prior to 39.8.8 have a vulnerability where HTTP redirects followed by net.fetch() and net.request() are not restricted by scheme. This allows a remote server to redirect a request to a local resource, potentially disclosing local file contents if the app exposes the response body. Only apps making net requests to attacker-controlled URLs with redirects followed and response bodies exposed are affected. Fixed versions include 39.8.8 and later.
AI Analysis
Technical Summary
The vulnerability in Electron's net.fetch() and net.request() functions allows HTTP redirects to target local file schemes without restriction. A remote attacker controlling a URL can cause the application to follow a redirect to a local resource, and if the application returns or forwards the response body, local files may be disclosed. This affects applications that follow redirects by default and expose the response body from attacker-influenced URLs. The issue is fixed in Electron versions 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3.
Potential Impact
An attacker can cause an Electron app to disclose local file contents by redirecting HTTP requests to local resources. This results in confidentiality loss of local files. The impact is limited to apps that make net requests to attacker-controlled URLs with redirects followed and expose the response body. There is no impact on integrity or availability.
Mitigation Recommendations
Upgrade Electron to version 39.8.8 or later where the issue is fixed. Alternatively, set the request option redirect to 'error' or 'manual' on requests to untrusted URLs and validate redirect targets before following them to prevent redirection to local resources.
Electron: HTTP redirect followed into local file loader (CVE-2026-70605)
Description
Electron versions prior to 39.8.8 have a vulnerability where HTTP redirects followed by net.fetch() and net.request() are not restricted by scheme. This allows a remote server to redirect a request to a local resource, potentially disclosing local file contents if the app exposes the response body. Only apps making net requests to attacker-controlled URLs with redirects followed and response bodies exposed are affected. Fixed versions include 39.8.8 and later.
CVSS v3.1
Score 5.9medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Electron's net.fetch() and net.request() functions allows HTTP redirects to target local file schemes without restriction. A remote attacker controlling a URL can cause the application to follow a redirect to a local resource, and if the application returns or forwards the response body, local files may be disclosed. This affects applications that follow redirects by default and expose the response body from attacker-influenced URLs. The issue is fixed in Electron versions 39.8.8, 40.9.0, 41.2.1, and 42.0.0-beta.3.
Potential Impact
An attacker can cause an Electron app to disclose local file contents by redirecting HTTP requests to local resources. This results in confidentiality loss of local files. The impact is limited to apps that make net requests to attacker-controlled URLs with redirects followed and expose the response body. There is no impact on integrity or availability.
Mitigation Recommendations
Upgrade Electron to version 39.8.8 or later where the issue is fixed. Alternatively, set the request option redirect to 'error' or 'manual' on requests to untrusted URLs and validate redirect targets before following them to prevent redirection to local resources.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-v64r-4m7r-3mvq
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-70605"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a73851ebf8831d5394ef7cf
Added to database: 08/05/2026, 18:46:54 UTC
Last enriched: 08/05/2026, 23:18:05 UTC
Last updated: 08/05/2026, 23:18:05 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.