Insertion of Sensitive Information Into Sent Data in Happy DOM - CVE-2026-34226
Published: April 27, 2026
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.