Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. electron
  4. ›
  5. CVE-2026-70604

CVE-2026-70604: Electron: Custom protocol with supportFetchAPI but not corsEnabled allows cross-origin reads

August 5, 2026

A custom scheme registered with supportFetchAPI: true but without corsEnabled: true was not subject to CORS enforcement. A page loaded from a remote origin could therefore fetch() or XMLHttpRequest that scheme cross-origin and read the full response body, rather than the read being blocked.

Apps that serve sensitive data from such a scheme and load remote or untrusted content in a renderer are affected. Apps that set corsEnabled: true, or that do not load untrusted content, are not affected.

References

  • github.com/advisories/GHSA-v3j7-r9gq-3gjw
  • github.com/electron/electron/security/advisories/GHSA-v3j7-r9gq-3gjw
  • nvd.nist.gov/vuln/detail/CVE-2026-70604

Code Behaviors & Features

Detect and mitigate CVE-2026-70604 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 39.8.10, all versions starting from 40.0.0-alpha.1 before 40.9.3, all versions starting from 41.0.0-alpha.1 before 41.4.0, all versions starting from 42.0.0-alpha.1 before 42.0.0

Fixed versions

  • 39.8.10
  • 40.9.3
  • 41.4.0
  • 42.0.0

Solution

Upgrade to versions 39.8.10, 40.9.3, 41.4.0, 42.0.0 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-942: Permissive Cross-domain Policy with Untrusted Domains

Source file

npm/electron/CVE-2026-70604.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:27 +0000.