{"id":"CVE-2026-34226","published":"2026-03-27T21:17:24Z","modified":"2026-07-15T01:04:37Z","title":"Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies","vendor":"capricorn86","product":"happy-dom","tier":"tail","description":{"text":"Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Versions prior to 20.8.9 may attach cookies from the current page origin (`window.location`) instead of the request target URL when `fetch(..., { credentials: \"include\" })` is used. This can leak cookies from origin A to destination B. Version 20.8.9 fixes the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00684,"percentile":0.47805,"provenance":"source"},"cwes":[{"id":"CWE-201","name":"Insertion of Sensitive Information Into Sent Data"},{"id":"CWE-359","name":"Exposure of Private Personal Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-w4gp-fjgq-3q4g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/capricorn86/happy-dom/pull/2117","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/commit/68324c21d7b98f53f7bb5a7b3e185bda7106e751","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/blob/f8d8cad41e9722fab9eefb9dfb3cca696462e908/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts","tags":["x_refsource_MISC"]},{"url":"https://github.com/capricorn86/happy-dom/releases/tag/v20.8.9","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-34226","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2452519","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34226.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":14.8,"factors":[{"name":"EPSS percentile","points":9.56},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"capricorn86","affectedVersions":[{"vendor":"capricorn86","product":"happy-dom","versions":["< 20.8.9"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-31T14:25:16.015238Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"happy-dom","vulnerableRanges":["<20.8.9"],"patched":["20.8.9"],"from":["GHSA-w4gp-fjgq-3q4g"],"provenance":"source"}],"summary":{"text":"Happy DOM, a JavaScript browser implementation without a GUI from capricorn86, has a flaw in its fetch handling where, prior to version 20.8.9, requests made with credentials set to \"include\" attach cookies from the current page origin rather than from the request's target URL. An attacker who can get a page running in Happy DOM to make a fetch to a destination they control can cause cookies from the originating page's origin to be sent to that destination, with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:03Z"},"euvd":{"id":"EUVD-2026-16893","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-capricorn86-happy-dom-cve-2025-61927","children":[{"from":"CVE-2026-34226","to":"CVE-2026-118661","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:happy-dom","fromFixed":"20.8.9","toFixed":"20.14.6","daysApart":215},{"kind":"same-code","provenance":"machine","files":["packages/happy-dom/src/cookie/CookieContainer.ts"],"commits":["https://github.com/capricorn86/happy-dom/commit/f21dbd7d0a0c63cdd41954ba5d0f05def4e0f2b3","https://github.com/capricorn86/happy-dom/commit/68324c21d7b98f53f7bb5a7b3e185bda7106e751"],"basis":"shared function","functions":["CookieContainer"]}]}],"packageHistory":[{"cve":"CVE-2025-61927","published":"2025-10-10","fixed":"20.0.0","kev":false},{"cve":"CVE-2025-62410","published":"2025-10-15","fixed":"20.0.2","kev":false},{"cve":"CVE-2026-33943","published":"2026-03-27","fixed":"20.8.8","kev":false,"link":{"from":"CVE-2026-33943","to":"CVE-2026-34226","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:happy-dom","fromFixed":"20.8.8","toFixed":"20.8.9","daysApart":0}]}},{"cve":"CVE-2026-34226","published":"2026-03-27","fixed":"20.8.9","kev":false},{"cve":"CVE-2026-118661","published":"2026-10-28","fixed":"20.14.6","kev":false},{"cve":"CVE-2026-118660","published":"2026-10-28","fixed":"21.0.0","kev":false},{"cve":"CVE-2026-115895","published":"2026-10-23","fixed":"21.0.4","kev":false}],"package":"npm:happy-dom"}}