CVE-2026-70605
Received Received - Intake

Security Bypass in Electron Framework via Redirect

Vulnerability report for CVE-2026-70605, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-05

Last updated on: 2026-08-05

Assigner: GitHub, Inc.

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-05
Last Modified
2026-08-05
Generated
2026-08-05
AI Q&A
2026-08-05
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 5 associated CPEs
Vendor Product Version / Range
electron electron to 39.8.8 (exc)
electron electron to 40.9.0 (exc)
electron electron to 41.2.1 (exc)
electron electron to 42.0.0-beta.3 (exc)
electron electron to 39.8.8|end_excluding=40.9.0|end_excluding=41.2.1|end_excluding=42.0.0-beta.3 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-918 The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-70605 is a vulnerability in the Electron framework where HTTP redirects followed by net.fetch() and net.request() could be manipulated to target local file resources. This could allow a remote server to redirect a request to a local file, potentially exposing its contents if the application returns or forwards the response body.

Detection Guidance

To detect this vulnerability, check if your Electron app uses net.fetch() or net.request() with default redirect behavior (following redirects automatically). Monitor network traffic for unexpected local file access attempts. Use Electron version checks to identify outdated versions (prior to 39.8.8, 40.9.0, 41.2.1, or 42.0.0-beta.3).

Commands: npm list electron (to check version), grep -r 'net.fetch()' or 'net.request()' in your app code to find potential vulnerable calls.

Impact Analysis

This vulnerability could impact you if you use an affected Electron version and your app makes network requests to untrusted URLs with redirects enabled (default behavior) and exposes the response body. An attacker could exploit this to access local file contents on your system.

Mitigation Strategies

Upgrade Electron to versions 39.8.8, 40.9.0, 41.2.1, or 42.0.0-beta.3 or later. If upgrading is not possible, set redirect: 'error' or redirect: 'manual' on requests to untrusted URLs and validate redirect targets before following them.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-70605. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart