Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. happy-dom
  4. ›
  5. CVE-2026-34226

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

March 29, 2026

happy-dom 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.

References

  • github.com/advisories/GHSA-w4gp-fjgq-3q4g
  • github.com/capricorn86/happy-dom
  • github.com/capricorn86/happy-dom/blob/f8d8cad41e9722fab9eefb9dfb3cca696462e908/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts
  • github.com/capricorn86/happy-dom/commit/68324c21d7b98f53f7bb5a7b3e185bda7106e751
  • github.com/capricorn86/happy-dom/pull/2117
  • github.com/capricorn86/happy-dom/releases/tag/v20.8.9
  • github.com/capricorn86/happy-dom/security/advisories/GHSA-w4gp-fjgq-3q4g
  • nvd.nist.gov/vuln/detail/CVE-2026-34226

Code Behaviors & Features

Detect and mitigate CVE-2026-34226 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 20.8.9

Fixed versions

  • 20.8.9

Solution

Upgrade to version 20.8.9 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-201: Insertion of Sensitive Information Into Sent Data

Source file

npm/happy-dom/CVE-2026-34226.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:13 +0000.