Vulnerability library
Security checkMarch 29, 2026

Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies

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

High severitynpmhappy-dom

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

happy-dom may attach cookies from the current page origin (window.location) instead of the request target URL when fetch(..., { credentials: "include" }) is used. This can leak cookies from origin A to destination B.

Recommendation

Update the happy-dom package to the latest compatible version. Followings are version details:

  • Affected version(s): < 20.8.9
  • Patched version(s): 20.8.9

References

Could your website be exposed too?

SmartScanner can check your website for Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated March 29, 2026