Skip to content
OpenAdvisories
High · 7.5 CVE-2026-34226 EUVD-2026-16893GHSA-w4gp-fjgq-3q4g

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

Published Mar 27, 2026 · Updated Jul 15, 2026 · Assigned by GitHub_M

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

VendorProductAffectedFixed
capricorn86 happy-dom < 20.8.9 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm happy-dom < 20.8.9 20.8.9 GHSA-w4gp-fjgq-3q4g

References