Description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.10, 40.9.3, 41.4.0, and 42.0.0, 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. This issue is fixed in versions 39.8.10, 40.9.3, 41.4.0, and 42.0.0.
Published: 2026-08-05
Score: 7.4 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A custom protocol scheme that enables the Fetch API but omits CORS enforcement allows an attacker to retrieve the body of responses from that scheme using fetch() or XMLHttpRequest, effectively bypassing the expected same‑origin restriction. The result is a breach of confidentiality for any data served over the vulnerable scheme, classified under CWE‑942.

Affected Systems

Electron frameworks installed with versions prior to 39.8.10, 40.9.3, 41.4.0, or 42.0.0 are affected. Applications that register custom protocols with supportFetchAPI set to true and do not enable corsEnabled are at risk when they load remote or untrusted renderer content.

Risk and Exploitability

The vulnerability’s CVSS score of 7.4 indicates a high impact with significant risk to data confidentiality. EPSS information is not available, and the flaw is not listed in CISA KEV, suggesting early‑stage exploitation potential. An attacker would need to supply or influence content loaded in a renderer process that can call fetch() or XMLHttpRequest on the custom scheme, a scenario commonly found in apps that integrate remote web content.

Generated by OpenCVE AI on August 5, 2026 at 18:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update Electron to a fixed version (>=39.8.10, 40.9.3, 41.4.0, or 42.0.0) to eliminate the vulnerability.
  • Add "corsEnabled":true to all custom protocol registrations that also set "supportFetchAPI":true to enforce CORS.
  • Ensure that renderer processes do not load untrusted or remote web content, or use context isolation and other isolation mechanisms to prevent cross‑origin memory access.
  • As a temporary measure, if a patch is not yet available, disable supportFetchAPI on any sensitive custom protocols until the official fix is applied.

Generated by OpenCVE AI on August 5, 2026 at 18:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-v3j7-r9gq-3gjw Electron: Custom protocol with supportFetchAPI but not corsEnabled allows cross-origin reads
History

Wed, 05 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Wed, 05 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Electron
Electron electron
Vendors & Products Electron
Electron electron

Wed, 05 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
Description Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to 39.8.10, 40.9.3, 41.4.0, and 42.0.0, 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. This issue is fixed in versions 39.8.10, 40.9.3, 41.4.0, and 42.0.0.
Title Electron: Custom protocol with supportFetchAPI but not corsEnabled allows cross-origin reads
Weaknesses CWE-942
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N'}


Subscriptions

Electron Electron
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-05T18:41:32.481Z

Reserved: 2026-08-04T19:50:27.328Z

Link: CVE-2026-70604

cve-icon Vulnrichment

Updated: 2026-08-05T18:13:53.489Z

cve-icon NVD

Status : Received

Published: 2026-08-05T16:17:04.617

Modified: 2026-08-05T19:17:39.593

Link: CVE-2026-70604

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T18:15:05Z

Weaknesses
  • CWE-942

    Permissive Cross-domain Security Policy with Untrusted Domains