{"affected":[{"product":"happy-dom","source":"CNA: GitHub_M","vendor":"capricorn86","versions":[{"status":"affected","version":"< 20.14.6"}]},{"defaultStatus":"unaffected","ecosystem":"npm","packageName":"happy-dom","product":"happy-dom","source":"OSV GHSA-5fpq-26gf-qwcr","vendor":"","versions":[{"events":[{"introduced":"0"},{"fixed":"20.14.6"}],"lessThan":"20.14.6","status":"affected","version":"0","versionType":"semver"}]}],"cveId":"CVE-2026-118661","cwes":["CWE-565"],"description":"Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Prior to 20.14.6, Happy DOM's CookieContainer in src/cookie/CookieContainer.ts does not correctly validate or match Domain cookie attributes. It can accept a Domain unrelated to the origin setting the cookie, including a public suffix, and separately treats an unrelated suffix-sharing hostname as a match because cookieMatchesURL does not enforce a DNS-label boundary. In server-side rendering and prerendering applications that contact attacker-controlled origins and then make requests to a victim origin, these behaviors can plant and deliver a forged cookie, enabling cookie injection or session fixation. This issue is fixed in version 20.14.6.","epss":{"date":"2026-11-02","percentile":0.19606,"score":0.00272},"exploits":[{"kind":"exploit","source":"ADP: CISA-ADP","url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-5fpq-26gf-qwcr"}],"kev":null,"metrics":[{"score":6.5,"severity":"medium","source":"CNA: GitHub_M","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"}],"modifiedAt":1793712815617,"publishedAt":1793219423868,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-5fpq-26gf-qwcr"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/capricorn86/happy-dom/pull/2477"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/capricorn86/happy-dom/commit/f21dbd7d0a0c63cdd41954ba5d0f05def4e0f2b3"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/capricorn86/happy-dom/releases/tag/v20.14.6"},{"source":"ADP: CISA-ADP","tags":["exploit"],"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-5fpq-26gf-qwcr"},{"source":"OSV / GitHub Security Advisories","tags":["advisory"],"url":"https://github.com/advisories/GHSA-5fpq-26gf-qwcr"},{"source":"OSV / GitHub Security Advisories","tags":["osv"],"url":"https://osv.dev/vulnerability/GHSA-5fpq-26gf-qwcr"}],"remediation":[{"kind":"fix","source":"OSV GHSA-5fpq-26gf-qwcr","text":"happy-dom (npm): OSV reports a fixed version 20.14.6. Check the advisory for supported release branches.","url":"https://github.com/advisories/GHSA-5fpq-26gf-qwcr"}],"revision":"2ff8cd14683e67cb5631e55783067a890e69757c1b3d46ce8f04ea354d18bab4","sources":[{"modifiedAt":1793712815617,"name":"CNA: GitHub_M","retrievedAt":1793714953909,"url":"https://www.cve.org/CVERecord?id=CVE-2026-118661"},{"modifiedAt":1793222105095,"name":"OSV / GitHub Security Advisories","retrievedAt":1793714954801,"url":"https://osv.dev/vulnerability/GHSA-5fpq-26gf-qwcr"},{"modifiedAt":null,"name":"FIRST EPSS","retrievedAt":1793714963934,"url":"https://api.first.org/data/v1/epss?cve=CVE-2026-118661"}],"ssvc":{"assessedAt":1793712789550,"automatable":"yes","exploitation":"poc","source":"ADP: CISA-ADP","technicalImpact":"partial"},"status":"published","title":"Happy DOM: Cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookies","updatedAt":1793714963934}