Vulnerability library
Security checkOctober 28, 2026

Happy DOM has cookie scope forgery: no DNS-label boundary on Domain= matching , attacker origin sets victim cookies

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmhappy-dom

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

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 scan

Related Issues

See something that needs correcting? Let us knowUpdated October 28, 2026