{"id":"CVE-2026-70605","aliases":["CVE-2026-70605","GHSA-v64r-4m7r-3mvq"],"related":[],"kind":"vulnerability","state":"published","title":"Electron: HTTP redirect followed into local file loader","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nWhen 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.\n\nApps 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.\n\n### Workarounds\nSet `redirect: 'error'` or `redirect: 'manual'` on requests to untrusted URLs and validate any redirect target before following it.\n\n### Fixed Versions\n* `42.0.0-beta.3`\n* `41.2.1`\n* `40.9.0`\n* `39.8.8`\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)","format":"markdown","source":"ghsa"}],"published":"2026-08-05T16:04:09.000Z","modified":"2026-10-08T13:53:48.053Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 39.8.8","status":"affected"},{"version":">= 40.0.0-alpha.1, < 40.9.0","status":"affected"},{"version":">= 41.0.0-alpha.1, < 41.2.1","status":"affected"},{"version":">= 42.0.0-alpha.1, < 42.0.0-beta.3","status":"affected"}],"vendor":"electron","product":"electron","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"39.8.8"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"40.0.0-alpha.1","status":"affected","fixed":"40.9.1"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"41.0.0-alpha.1","status":"affected","fixed":"41.2.1"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"42.0.0-alpha.1","status":"affected","fixed":"42.0.0-beta.3"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"39.8.8"},{"status":"affected","introduced":"40.0.0","fixed":"40.9.0"},{"status":"affected","introduced":"41.0.0","fixed":"41.2.1"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"},{"status":"affected","version":"42.0.0"}],"vendor":"electronjs","product":"electron","cpe":"cpe:2.3:a:electronjs:electron:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-v64r-4m7r-3mvq","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-08-06T14:23:48.944Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-70605","url":"https://www.cve.org/CVERecord?id=CVE-2026-70605","licence":"CVE Terms of Use","modified":"2026-08-06T14:24:06.012Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v64r-4m7r-3mvq","url":"https://github.com/advisories/GHSA-v64r-4m7r-3mvq","licence":"CC-BY-4.0","modified":"2026-08-05T16:26:04.559Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-70605","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-70605","licence":"Public domain","modified":"2026-10-08T13:53:48.053Z"}],"updatedAt":"2026-11-25T22:59:31.128Z","epss":{"score":0.0027,"percentile":0.2049,"date":"2026-12-01T12:00:22.000Z"}}