Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113796 Overview
CVE-2026-113796 affects the Electron framework, which is used to build cross-platform desktop applications with JavaScript, HTML, and CSS. Electron treated pages opened into a new window from links as application-initiated navigations rather than preserving the originating page as the initiator. The resulting top-level request could be misclassified as same-site, causing SameSite=Strict cookies to be transmitted and the Sec-Fetch-Site header to omit the initiating page. Applications that load untrusted content and permit it to open new windows can therefore allow that content to issue credentialed requests to another site that depends on SameSite cookies for Cross-Site Request Forgery (CSRF) protection [CWE-352].
Critical Impact
Untrusted web content loaded in an Electron application can bypass SameSite=Strict cookie protections and perform CSRF attacks against third-party sites that rely on SameSite for defense.
Affected Products
- Electron versions prior to 42.11.3
- Electron versions prior to 43.7.0
- Electron versions prior to 44.3.0 and prior to 45.0.0-alpha.6
Discovery Timeline
- 2026-10-21 - CVE-2026-113796 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-113796
Vulnerability Analysis
The flaw is a CSRF protection bypass rooted in how Electron attributed navigations opened from link clicks. When a user activated a link that spawned a new window, Electron treated the resulting navigation as application-initiated instead of preserving the originating page as the initiator. Browsers use the initiator to decide whether a request is same-site or cross-site, which in turn controls whether SameSite=Strict cookies are attached and how the Sec-Fetch-Site header is populated.
Because the initiator was lost, cross-site navigations triggered by untrusted content were classified as same-site. Any destination that relies on SameSite=Strict cookies to block cross-origin, state-changing requests could therefore be tricked into executing authenticated actions on behalf of the user. The condition only manifests in Electron applications that load untrusted web content and permit it to open new windows, which narrows practical exploitability.
Root Cause
The root cause is incorrect propagation of the initiator for popups created from modifier-click actions and from the Chromium OpenURLFromTab path. These navigation paths bypassed the standard window-open policy routing used for scripted window.open calls. As a result, the new top-level request lacked the correct initiator origin and inherited application-level attribution.
Attack Vector
An attacker who controls content rendered inside an Electron webContents embeds a link targeting a sensitive endpoint on a third-party site. When the link is activated into a new window, Electron issues the top-level request without the correct cross-site initiator. The browser process attaches SameSite=Strict cookies for the destination origin, allowing the attacker to perform authenticated state-changing operations against sites that depend on SameSite cookies for CSRF defense.
// Security patch excerpt: lib/browser/api/web-contents.ts
// The '-new-window' handler now receives a `navigate` callback so link-initiated
// popups are routed through the same window-open policy as window.open, preserving
// the initiating page as the request initiator.
if (this.getType() !== 'remote') {
// Make new windows requested by links behave like "window.open".
- this.on('-new-window', (event, url, frameName, disposition, rawFeatures, referrer, postData, sandboxFlags) => {
- const postBody = postData
- ? {
- data: postData,
- ...parseContentTypeFormat(postData)
- }
- : undefined;
- const details: Electron.HandlerDetails = {
- url,
- frameName,
- features: rawFeatures,
- referrer,
- postBody,
- disposition
- };
+ this.on(
+ '-new-window',
+ (event, url, frameName, disposition, rawFeatures, referrer, postData, sandboxFlags, navigate) => {
+ const postBody = postData
+ ? {
+ data: postData,
+ ...parseContentTypeFormat(postData)
+ }
+ : undefined;
+ const details: Electron.HandlerDetails = {
+ url,
+ frameName,
Source: Electron commit 079b9b1
Detection Methods for CVE-2026-113796
Indicators of Compromise
- Unexpected authenticated requests to third-party sites originating from desktop applications that embed Electron webContents.
- Outbound HTTP requests from Electron processes where the Sec-Fetch-Site header is missing or does not match the embedding page's origin.
- Server-side logs on protected endpoints showing state-changing requests with valid session cookies but no corresponding user action.
Detection Strategies
- Inventory deployed Electron applications and compare runtime versions against the fixed releases 42.11.3, 43.7.0, 44.3.0, and 45.0.0-alpha.6.
- Instrument Electron applications that load third-party content to log -new-window events and the resulting navigation initiator for review.
- On web services that rely on SameSite=Strict cookies, correlate request Referer, Origin, and Sec-Fetch-Site headers to flag inconsistent CSRF context.
Monitoring Recommendations
- Monitor endpoints running Electron-based applications for process-level network activity to high-value third-party domains.
- Track GitHub advisory GHSA-2p8c-gr87-2676 for updates and additional affected downstream applications.
- Review software bill of materials (SBOM) output for bundled Electron runtimes and alert on versions below the patched releases.
How to Mitigate CVE-2026-113796
Immediate Actions Required
- Upgrade Electron to a fixed release: 42.11.3, 43.7.0, 44.3.0, or 45.0.0-alpha.6.
- Audit webContents configurations that load untrusted content and disable the ability to open new windows where it is not required.
- For services that depend on SameSite=Strict cookies for CSRF protection, add defense-in-depth controls such as anti-CSRF tokens or origin validation.
Patch Information
The fix routes modifier-click and OpenURLFromTab popups through the same window-open policy used by scripted window.open calls, preserving the originating page as the navigation initiator. Patch commits are available in the Electron repository: commit 079b9b1, commit 0e6aca0, commit 652ef79, commit 98940cb, and commit a86ae42. Fixed binaries are published in Electron v42.11.3, v43.7.0, v44.3.0, and v45.0.0-alpha.6.
Workarounds
- Deny new-window creation from untrusted webContents by returning { action: 'deny' } in setWindowOpenHandler until the runtime is upgraded.
- Restrict loaded content to trusted origins and avoid rendering arbitrary third-party pages inside embedded webContents.
- Where feasible, require anti-CSRF tokens or double-submit cookies on sensitive endpoints instead of relying solely on SameSite attributes.
# Example: deny link-initiated popups from an untrusted webContents
# Place in the main process after creating the BrowserWindow
win.webContents.setWindowOpenHandler(() => {
return { action: 'deny' };
});
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

