CVE-2026-113796
JSON

4.2medium

Electron: SameSite cookie restrictions are not applied to windows opened from links

Severity
4.2medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-2p8c-gr87-2676

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

Product or packageVersionsReported by
electron electron< 42.11.3, >= 43.0.0-alpha.1, < 43.7.0, >= 44.0.0-alpha.1, < 44.3.0, >= 45.0.0-alpha.1, < 45.0.0-alpha.6CVE List
electron (npm)from 45.0.0-alpha.1 before 45.0.0-alpha.6, from 44.0.0-alpha.1 before 44.3.0, from 43.0.0-alpha.1 before 43.7.0, before 42.11.3GitHub Advisory Database

All scores

GitHub_M4.2medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N
GitHub4.2medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N

Classification

CWE-352

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

Pages opened into a new window from a link were loaded as if the app itself had navigated there rather than the page that contained the link, so the request was treated as same-site: SameSite=Strict cookies were sent and Sec-Fetch-Site did not identify the initiating page. Content shown in the app could use this to make a credentialed top-level request to another site that relies on SameSite cookies as a CSRF defence.

Apps are only affected if they load untrusted content and allow it to open new windows. Apps that deny new windows from untrusted content with setWindowOpenHandler are not affected.

Workarounds

Return { action: 'deny' } from setWindowOpenHandler for windows opened by untrusted content.

Fixed Versions
  • 45.0.0-alpha.6
  • 44.3.0
  • 43.7.0
  • 42.11.3
For more information

If you have any questions or comments about this advisory, email us at security@electronjs.org

References

https://github.com/electron/electron/security/advisories/GHSA-2p8c-gr87-2676web
https://github.com/electron/electron/pull/53683web
https://github.com/electron/electron/pull/53717web
https://github.com/electron/electron/pull/53718web
https://github.com/electron/electron/pull/53719web
https://github.com/electron/electron/pull/53721web
https://github.com/electron/electron/commit/079b9b1594ee62c336adc3aa430d4c1cf62bd51eweb
https://github.com/electron/electron/commit/0e6aca0618eeae50a18cfd50548b8688820629edweb
https://github.com/electron/electron/commit/652ef79ac79c6767b31e59b2f28d0d46114645e5web
https://github.com/electron/electron/commit/98940cb274bb6adcb7cdb2da2d4495ac83119670web
https://github.com/electron/electron/commit/a86ae4205ba2ba7ae60a6caa9d5d3a44321f2f9bweb
https://github.com/electron/electron/releases/tag/v42.11.3web

Sources

SourceRecordLicence
CVE ListCVE-2026-113796 changed 2026-10-23CVE Terms of Use
GitHub Advisory DatabaseGHSA-2p8c-gr87-2676 changed 2026-10-22CC-BY-4.0
NVDCVE-2026-113796 changed 2026-10-23Public domain