7.5High

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

capricorn86 happy-dom; Red Hat Red Hat Ansible Automation Platform 2; Red Hat Red Hat OpenShift Container Platform 4 Published: (7 months ago)

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.

Weakness (CWE): CWE-201CWE-359

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
capricorn86 happy-dom < 20.8.9
Red Hat Red Hat Ansible Automation Platform 2 all versions
Red Hat Red Hat OpenShift Container Platform 4 —

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:capricorn86:happy_dom:*:*:*:*:*:node.js:*:* < 20.8.9