Vulnerability · Published Oct 21, 2026 · Assigned by GitHub_M
CVE-2026-113796Electron: SameSite cookie restrictions are not applied to windows opened from links
Medium 4.2
In plain English
A medium-severity cross-site request forgery in electron from electron. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Electron is a framework for writing cross-platform desktop applications using JavaScript, HTML and CSS. Prior to versions 42.11.3, 43.7.0, 44.3.0, and 45.0.0-alpha.6, Electron treated pages opened into a new window from links as application-initiated navigations instead of preserving the page containing the link as the initiator. The resulting top-level request could be classified as same-site, causing SameSite=Strict cookies to be sent and Sec-Fetch-Site not to identify the initiating page. An application that loads untrusted content and permits it to open new windows could therefore allow that content to make a credentialed request to another site that relies on SameSite cookies for CSRF protection. This issue is fixed in versions 42.11.3, 43.7.0, 44.3.0, and 45.0.0-alpha.6.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | electron | 45.0.0-alpha.6 | GHSA-2p8c-gr87-2676 |
| npm | electron | 44.3.0 | GHSA-2p8c-gr87-2676 |
| npm | electron | 43.7.0 | GHSA-2p8c-gr87-2676 |
| npm | electron | 42.11.3 | GHSA-2p8c-gr87-2676 |
Affected products (as reported)
Weakness: CWE-352 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
References
- https://github.com/electron/electron/security/advisories/GHSA-2p8c-gr87-2676 x_refsource_CONFIRM
- https://github.com/electron/electron/pull/53683 x_refsource_MISC
- https://github.com/electron/electron/pull/53717 x_refsource_MISC
- https://github.com/electron/electron/pull/53718 x_refsource_MISC
- https://github.com/electron/electron/pull/53719 x_refsource_MISC
- https://github.com/electron/electron/pull/53721 x_refsource_MISC
- https://github.com/electron/electron/commit/079b9b1594ee62c336adc3aa430d4c1cf62bd51e x_refsource_MISC
- https://github.com/electron/electron/commit/0e6aca0618eeae50a18cfd50548b8688820629ed x_refsource_MISC
- https://github.com/electron/electron/commit/652ef79ac79c6767b31e59b2f28d0d46114645e5 x_refsource_MISC
- https://github.com/electron/electron/commit/98940cb274bb6adcb7cdb2da2d4495ac83119670 x_refsource_MISC
- https://github.com/electron/electron/commit/a86ae4205ba2ba7ae60a6caa9d5d3a44321f2f9b x_refsource_MISC
- https://github.com/electron/electron/releases/tag/v42.11.3 x_refsource_MISC
- https://github.com/electron/electron/releases/tag/v43.7.0 x_refsource_MISC
- https://github.com/electron/electron/releases/tag/v44.3.0 x_refsource_MISC
- https://github.com/electron/electron/releases/tag/v45.0.0-alpha.6 x_refsource_MISC