Insertion of Sensitive Information Into Sent Data in Happy DOM - CVE-2026-34226

 

Insertion of Sensitive Information Into Sent Data in Happy DOM - CVE-2026-34226

Published: April 27, 2026


Vulnerability identifier: #VU128058
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-34226
CWE-ID: CWE-201
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: capricorn86
Affected software:
Happy DOM

Detailed vulnerability description

The vulnerability allows a remote attacker to disclose sensitive information.

The vulnerability exists due to insertion of sensitive information into sent data in getRequestHeaders() in packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts when processing fetch requests with credentials set to include. A remote attacker can trigger a cross-origin request to cause cookies from the current page origin to be sent to the request destination.

This issue affects authenticated or session-based flows that rely on browser-like fetch behavior across different origins.


How to mitigate CVE-2026-34226

Install security update from vendor's website.

Sources