{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-118661","id":"CVE-2026-118661","title":"Happy DOM cookie domain spoofing in CookieContainer","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 matc","descriptionLong":"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.","published":"2026-10-28T20:30:23.868Z","updated":"2026-11-05T02:31:02.663360166Z","reserved":"2026-10-28T17:25:37.561Z","status":"Awaiting Analysis","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["capricorn86 happy-dom"],"affectedProducts":[{"vendor":"capricorn86","product":"happy-dom","defaultStatus":null,"versions":[{"version":"< 20.14.6","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"happy-dom","purl":"pkg:npm/happy-dom","ranges":["<20.14.6"],"fixed":["20.14.6"],"advisory":"GHSA-5fpq-26gf-qwcr"}],"cwes":["CWE-565"],"aliases":["GHSA-5fpq-26gf-qwcr"],"references":[{"url":"https://github.com/capricorn86/happy-dom/security/advisories/GHSA-5fpq-26gf-qwcr","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/capricorn86/happy-dom/pull/2477","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/capricorn86/happy-dom/commit/f21dbd7d0a0c63cdd41954ba5d0f05def4e0f2b3","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/capricorn86/happy-dom/releases/tag/v20.14.6","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118661.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118661","tags":["advisory"]},{"url":"https://github.com/capricorn86/happy-dom","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00272,"epssPercentile":0.19903,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-118661","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118661","ok":true,"note":"Awaiting Analysis"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-118661","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-5fpq-26gf-qwcr","ok":true,"note":"GHSA-5fpq-26gf-qwcr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-118661","ok":true,"note":"scored 2026-11-19"}],"aiTitle":true,"tech":[],"critical":[],"attention":null}