Description
A cookie-scoping bug in happy-dom lets an attacker origin set cookies that a victim origin then receives, diverging from browser semantics.
Recommendation
Update the happy-dom package to the latest compatible version. Followings are version details:
- Affected version(s): <= 20.14.5
- Patched version(s): 20.14.6
References
Could your website be exposed too?
SmartScanner can check your website for Happy DOM has cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookies and gives you actionable findings to investigate.
Start a free scanRelated Issues
- Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies - CVE-2026-34226
- Happy DOM: SSRF via iframe and link stylesheet when parsing untrusted HTML - CVE-2026-118660
- Happy DOM: Incomplete fix for CVE-2026-33943: unsanitized import alias leads to host code execution - CVE-2026-115895
- Feathers has an origin validation bypass via prefix matching - CVE-2026-27192


