Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify Electron app with misconfigured custom scheme
-
DeliveryHost malicious page at remote origin
-
ExploitEntice victim to load page in Electron renderer
-
InstallIssue fetch() to privileged custom scheme URL
-
C2CORS enforcement absent - full response returned
-
ExecuteRead sensitive response body
-
ImpactExfiltrate data to attacker server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A02:2025 - Security Misconfiguration
ASVS 5.0
V13 - Configuration CORS policy restriction
|
| Exploitation Conditions | Exploitation requires all three of the following application-level conditions to hold simultaneously: the Electron app must register a custom URL scheme with supportFetchAPI: true AND without corsEnabled: true; that custom scheme must serve data considered sensitive or private (e.g., user credentials, internal configuration, tokens); and the app must load remote or untrusted third-party content in a renderer process (e.g., via BrowserWindow navigating to an external URL, or via a webview tag). Apps that already set corsEnabled: true on their custom schemes are explicitly not affected. Apps that do not load any remote or untrusted content in the renderer are also not affected regardless of scheme configuration. The CVSS UI:R metric further constrains exploitation: a victim must actively open a renderer session containing the attacker's page - passive or server-side exploitation is not possible. Exploitation is limited to confidentiality; there is no write or execution primitive associated with this bypass. |
| Impact | The CVSS 7.4 score with vector AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N reflects a network-reachable, low-complexity confidentiality breach that crosses a security scope boundary, consistent with the CORS bypass mechanism. The UI:R metric is significant: exploitation is not passive - a victim must actively open or interact with a renderer that loads attacker-controlled content. No EPSS data was included in the provided intelligence, so probabilistic exploitation likelihood cannot be quantified. The vulnerability is not in CISA KEV, and no public exploit code has been identified. Real-world risk is substantially narrowed by the three concurrent application-level conditions required: custom scheme registration with the specific flag pair, serving sensitive data from that scheme, and loading untrusted remote content in the same renderer process. Apps meeting all three conditions face a genuine high-confidentiality risk; apps missing any one condition are not affected per the vendor advisory. |
| Exploit ScenarioDerived | An attacker hosts a malicious web page and entices a victim to open it inside an Electron application's renderer - for example, via an embedded webview or a BrowserWindow pointing at an attacker-controlled URL. The page issues a fetch() call to a privileged custom scheme (e.g., myapp://api/userdata) that the Electron app exposes to serve internal configuration or authentication tokens. Because CORS enforcement is absent on the scheme, Chromium returns the full response body to the malicious script, which then transmits the exfiltrated data to the attacker's server. No public exploit code is known at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 05, 2026
Cross-origin read bypass in Electron's custom protocol handler exposes sensitive application data to remote pages via fetch() and XMLHttpRequest. Electron apps on any branch prior to 39.8.10, 40.9.3, 41.4.0, or 42.0.0 that register a custom scheme with supportFetchAPI: true but omit corsEnabled: true fail to enforce CORS, allowing a malicious remote page loaded in the renderer to read the full response body of privileged custom-scheme requests. No public exploit code is identified at time of analysis and the vulnerability is not in CISA KEV, but the confidentiality impact is rated high by the vendor given the potential to exfiltrate internal application data.
RemediationAI
Upgrade Electron to one of the patched releases - 39.8.10, 40.9.3, 41.4.0, or 42.0.0 - which enforce CORS correctly for custom schemes regardless of the corsEnabled flag state, as documented in GHSA-v3j7-r9gq-3gjw (https://github.com/electron/electron/security/advisories/GHSA-v3j7-r9gq-3gjw). For teams unable to upgrade immediately, the vendor-confirmed workaround is to set corsEnabled: true on every custom scheme that uses supportFetchAPI: true; additionally, validate the Origin header inside the protocol handler before returning any sensitive data, which provides defence-in-depth even if CORS headers are misconfigured. Note that enabling corsEnabled: true may require updating legitimate callers to comply with CORS preflight requirements (adding appropriate Access-Control-Allow-Origin response headers), and that Origin validation in the handler must be maintained as an ongoing control if upgrading is delayed.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Electron's protocol module allows applications to define custom URL schemes (e.g., myapp://) that intercept network requests in the Chromium renderer. When a scheme is registered with supportFetchAPI: true, Electron signals to Chromium that the scheme participates in the Fetch API. CWE-942 (Permissive Cross-domain Policy with Untrusted Domains) is the root cause: Electron failed to apply CORS enforcement to such schemes unless the developer also explicitly set corsEnabled: true, meaning Chromium's cross-origin read blocking was bypassed for these scheme responses. A renderer loading content from a remote HTTP origin could therefore issue a fetch() or XHR to the custom scheme across the origin boundary and receive the full, unblocked response - behaviour that CORS is specifically designed to prevent. The affected CPE is cpe:2.3:a:electron:electron:*:*:*:*:*:*:*:*, spanning all major branches.
Know when Electron gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
Network-delivered, victim must load malicious page (UI:R); scope change reflects cross-origin boundary breach into custom scheme data; no integrity or availability impact applies.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
A cross-origin read bypass vulnerability in Electron's custom protocol handler (CVE-2026-70604) allows attackers to exfiltrate sensitive application data; no public exploit identified at time of analysis. Organizations running Electron versions prior to 39.8.10, 40.9.3, 41.4.0, or 42.0.0 that use custom scheme handlers face potential compromise of internal application secrets and user data.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
GitHub Electron versions 1.8.2-beta.3 and earlier, 1.7.10 and earlier, 1.6.15 and earlier has a vulnerability in the pro
Remote code execution in 5ire 0.15.2 and earlier arises because the desktop AI assistant renders Mermaid diagrams with s
Cross-site scripting in DeepChat's Mermaid diagram renderer escalates to full remote code execution on affected desktop
Remote code execution in DeepChat 0.5.1 and below is possible through a cross-site scripting flaw in Mermaid diagram ren
Stored cross-site scripting in SiYuan through 3.8.4 lets an attacker who can set a notebook name containing an HTML payl
GitHub Electron before 1.6.8 allows remote command execution because of a nodeIntegration bypass vulnerability. Rated hi
GitHub Electron 1.7.15, 1.8.7, 2.0.7, and 3.0.0-beta.6, in certain scenarios involving IFRAME elements and "nativeWindow
Electron version 1.7 up to 1.7.12; 1.8 up to 1.8.3 and 2.0.0 up to 2.0.0-beta.3 contains an improper handling of values
electron-updater allows for automatic updates for Electron apps. Rated high severity (CVSS 7.5), this vulnerability is r
Native code execution outside the Chromium sandbox is achievable in Electron prior to 39.8.9, 40.9.2, 41.2.1, and 42.0.0
In Electron before versions 7.2.4, 8.2.4, and 9.0.0-beta21, there is a context isolation bypass. Rated critical severity
Privilege escalation in the Electron framework lets a <webview> guest grant itself Node.js integration inside its Web Wo
EUVD-2026-53440
GHSA-v3j7-r9gq-3gjw
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB