medium

CVE-2026-70605

npm · electron

Summary

Electron: HTTP redirect followed into local file loader

Severity
medium
CVSS
5.9
EPSS
0.3% (p24)
CWE
CWE-918
Also known as
GHSA-v64r-4m7r-3mvq
Published
2026-08-05
Updated
2026-08-05

Advisory details

Impact

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 (the default) and expose the response body. Apps that only request fixed, trusted URLs are not affected.

Workarounds

Set redirect: 'error' or redirect: 'manual' on requests to untrusted URLs and validate any redirect target before following it.

Fixed Versions

For more information

If you have any questions or comments about this advisory, email Electron at security@electronjs.org

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.