Electron: SameSite cookie restrictions are not applied to windows opened from links (electron electron)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 12 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Undergoing Analysis
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.
Weaknesses (CWE)
- CWE-352 — Cross-Site Request Forgery
References
- https://github.com/electron/electron/security/advisories/GHSA-2p8c-gr87-2676
- https://github.com/electron/electron/pull/53683
- https://github.com/electron/electron/pull/53717
- https://github.com/electron/electron/pull/53718
- https://github.com/electron/electron/pull/53719
- https://github.com/electron/electron/pull/53721
- https://github.com/electron/electron/commit/079b9b1594ee62c336adc3aa430d4c1cf62bd51e
- https://github.com/electron/electron/commit/0e6aca0618eeae50a18cfd50548b8688820629ed
- https://github.com/electron/electron/commit/652ef79ac79c6767b31e59b2f28d0d46114645e5
- https://github.com/electron/electron/commit/98940cb274bb6adcb7cdb2da2d4495ac83119670
- https://github.com/electron/electron/commit/a86ae4205ba2ba7ae60a6caa9d5d3a44321f2f9b
- https://github.com/electron/electron/releases/tag/v42.11.3
- https://github.com/electron/electron/releases/tag/v43.7.0
- https://github.com/electron/electron/releases/tag/v44.3.0
- https://github.com/electron/electron/releases/tag/v45.0.0-alpha.6
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N | GitHub_M |
| CVSS 3.1 | MEDIUM 4.2 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N | NVD · security-advisories@github.com (Secondary) |
Advisories
- GHSA-2p8c-gr87-2676 — Electron: SameSite cookie restrictions are not applied to windows opened from links
European references
- ENISA EUVD · EUVD-2026-107368
- GCVE · GCVE-0-2026-113796
Affected products
| Product | Versions |
|---|---|
| electron · electron | affected < 42.11.3 ; affected >= 43.0.0-alpha.1, < 43.7.0 ; affected >= 44.0.0-alpha.1, < 44.3.0 ; affected >= 45.0.0-alpha.1, < 45.0.0-alpha.6 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |