Vulnerabilities/

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

Severity:
High

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:

References

Related Issues

Tags:
npm
happy-dom
Anything's wrong? Let us know Last updated on March 29, 2026