What’s Vulnerable › Vulnerabilities

CVE-2026-34226: Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies

Description

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. Versions prior to 20.8.9 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. Version 20.8.9 fixes the issue.

Affected products

How to fix

Upgrade to a fixed version: capricorn86 happy-dom 20.8.9. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-34226 or the next vulnerability affects your stack