CVE-2026-118661
CVE-2026-118661 — Happy DOM: Cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookies
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 Updated Sources: NVD, capricorn86 (CNA), GitHub, GitHub Security Advisory, SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
ahead of 27% of scored CVEs
CVSS base
6.5
medium
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Remediation
The vendor's own words where we have them.
Upgrade happy-dom to 20.14.6 or later (npm advisory GHSA-5fpq-26gf-qwcr).
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Prioritize based on EPSS, PoC availability, and external exposure.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Capricorn86 | happy-dom | < 20.14.6 | Vulnerable |
| Npm | happy-dom | <= 20.14.5 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
None
Confidentiality
Low
Integrity
Low
Scope
Unchanged
Attack Complexity
Low
Attack Vector
Network
Privileges Req
None
User Interaction
None
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.5 | CVSS 3.1 | medium | 3.9 | 2.5 | GitHub (CNA), capricorn86 (CNA), GHSA |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-565 · Reliance on Cookies without Validation and Integrity Checking
- Gain Privileges or Assume Identity
Mitigation: Avoid using cookie data for a security-related decision.
Weakness & attack patterns
- CWE-565
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1539Steal Web Session Cookie
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Search application, proxy, and WAF logs for requests touching /cookie/CookieContainer.ts.
- Prioritize edge telemetry for network-reachable Happy-dom.
Timeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Added · CVSS 3.1 6.5 (AV:N)
Oct 28, 2026 · NVD
Initial · CVE published
Oct 28, 2026 · NVD
Added · GHSA-5fpq-26gf-qwcr published (medium)
Oct 28, 2026 · GitHub Security Advisory
CVE published by MITRE.
Oct 28, 2026 · SOCRadar CTI
References
5 on the record
- github.com/capricorn86/happy-dom/commit/f21dbd7d0a0c63cdd41954ba5d0f05def4e0f2b3
Exploit, Third Party Advisory, Mitre, NIST
- github.com/capricorn86/happy-dom/pull/2477
Exploit, Third Party Advisory, Mitre, NIST
- github.com/capricorn86/happy-dom/releases/tag/v20.14.6
Exploit, Third Party Advisory, Mitre, NIST
- github.com/capricorn86/happy-dom/security/advisories/GHSA-5fpq-26gf-qwcr
Exploit, Third Party Advisory, Mitre, NIST, GITHUB
- github.com/advisories/GHSA-5fpq-26gf-qwcr
Exploit, Third Party Advisory
Coverage
1 story from the feeds we poll
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-0257 PAN-OS: GlobalProtect Authentication Bypass VulnerabilitiesCVSS 9.1 · CISA KEV
Elsewhere on this site
- Capricorn86every CVE for this vendor
- Npmevery CVE for this vendor
- Unclassifiedsame class
- CWE-565other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2026-118661 is Happy DOM: Cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookies, a medium vulnerability affecting Happy-dom from Capricorn86, Npm. The current evidence does not list it in CISA KEV, and the exploit status is: Active exploitation is not confirmed from current sources for CVE-2026-118661. Public exploit evidence is: A public PoC is not confirmed from current sources for CVE-2026-118661. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 6.5 describes technical severity, while EPSS 0% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.