{"id":"CVE-2026-113796","aliases":["CVE-2026-113796","GHSA-2p8c-gr87-2676"],"related":[],"kind":"vulnerability","state":"published","title":"Electron: SameSite cookie restrictions are not applied to windows opened from links","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nPages 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.\n\nApps 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.\n\n### Workarounds\n\nReturn `{ action: 'deny' }` from `setWindowOpenHandler` for windows opened by untrusted content.\n\n### Fixed Versions\n\n* `45.0.0-alpha.6`\n* `44.3.0`\n* `43.7.0`\n* `42.11.3`\n\n### For more information\n\nIf you have any questions or comments about this advisory, email us at [security@electronjs.org](mailto:security@electronjs.org)","format":"markdown","source":"ghsa"}],"published":"2026-10-21T16:04:42.688Z","modified":"2026-10-23T15:17:24.973Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":4.2,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":4.2,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N","score":4.2,"rating":"MEDIUM"}],"cwes":["CWE-352"],"affected":[{"ranges":[{"version":"< 42.11.3","status":"affected"},{"version":">= 43.0.0-alpha.1, < 43.7.0","status":"affected"},{"version":">= 44.0.0-alpha.1, < 44.3.0","status":"affected"},{"version":">= 45.0.0-alpha.1, < 45.0.0-alpha.6","status":"affected"}],"vendor":"electron","product":"electron","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"45.0.0-alpha.1","status":"affected","fixed":"45.0.0-alpha.6"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"44.0.0-alpha.1","status":"affected","fixed":"44.3.0"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"43.0.0-alpha.1","status":"affected","fixed":"43.7.0"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"42.11.3"}],"ecosystem":"npm","package":"electron","purl":"pkg:npm/electron","source":"ghsa"}],"references":[{"url":"https://github.com/electron/electron/security/advisories/GHSA-2p8c-gr87-2676","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/pull/53683","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/pull/53717","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/pull/53718","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/pull/53719","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/pull/53721","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/commit/079b9b1594ee62c336adc3aa430d4c1cf62bd51e","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/commit/0e6aca0618eeae50a18cfd50548b8688820629ed","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/commit/652ef79ac79c6767b31e59b2f28d0d46114645e5","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/commit/98940cb274bb6adcb7cdb2da2d4495ac83119670","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/commit/a86ae4205ba2ba7ae60a6caa9d5d3a44321f2f9b","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/releases/tag/v42.11.3","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/releases/tag/v43.7.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/releases/tag/v44.3.0","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/electron/electron/releases/tag/v45.0.0-alpha.6","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113796","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/electron/electron","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-23T14:47:51.057Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-113796","url":"https://www.cve.org/CVERecord?id=CVE-2026-113796","licence":"CVE Terms of Use","modified":"2026-10-23T15:12:14.165Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2p8c-gr87-2676","url":"https://github.com/advisories/GHSA-2p8c-gr87-2676","licence":"CC-BY-4.0","modified":"2026-10-22T17:00:04.178Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-113796","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-113796","licence":"Public domain","modified":"2026-10-23T15:17:24.973Z"}],"updatedAt":"2026-11-25T22:59:46.625Z","epss":{"score":0.00219,"percentile":0.13137,"date":"2026-12-01T12:00:22.000Z"}}