Bug 2563189 (CVE-2026-118661) - CVE-2026-118661 happy-dom: happy-dom: Cookie injection via improper cookie domain validation
Summary: CVE-2026-118661 happy-dom: happy-dom: Cookie injection via improper cookie do...
Keywords:
Status: NEW
Alias: CVE-2026-118661
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2563387 2563388 2563389
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-28 20:42 UTC by OSIDB Bzimport
Modified: 2026-10-29 14:21 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-28 20:42:06 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.