Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies
Summary
| CVE | CVE-2026-34226 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-03-27 22:16:23 UTC |
| Updated | 2026-04-01 13:26:49 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.5 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS: 0.000320000 probability, percentile 0.091890000 (date 2026-04-01)
Problem Types: CWE-201 | CWE-359 | CWE-201 CWE-201: Insertion of Sensitive Information Into Sent Data | CWE-359 CWE-359: Exposure of Private Personal Information to an Unauthorized Actor
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| 3.1 | CNA | DECLARED | 7.5 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Capricorn86 | Happy Dom | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Capricorn86 | Happy-dom | affected < 20.8.9 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/capricorn86/happy-dom/pull/2117 | [email protected] | github.com | Issue Tracking, Patch |
| github.com/capricorn86/happy-dom/security/advisories/GHSA-w4gp-fjgq-3q4g | [email protected] | github.com | Exploit, Vendor Advisory |
| github.com/capricorn86/happy-dom/commit/68324c21d7b98f53f7bb5a7b3e185bda... | [email protected] | github.com | Patch |
| github.com/capricorn86/happy-dom/blob/f8d8cad41e9722fab9eefb9dfb3cca6964... | [email protected] | github.com | Patch |
| github.com/capricorn86/happy-dom/releases/tag/v20.8.9 | [email protected] | github.com | Product, Release Notes |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.