CVE-2026-34226
HIGH 7.5CVSS 3.1Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies
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.
- Published
- 27 Mar 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-201
- Also known as
- GHSA-w4gp-fjgq-3q4g
- Sources
- NVDJSONOSV GHSA-w4gp-fjgq-3q4gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | capricorn86 | happy_domcpe:2.3:a:capricorn86:happy_dom:*:*:*:*:*:node.js:*:* |
< 20.8.9 | 20.8.9 |
| OSV | npm | happy-dom | < 20.8.9 | 20.8.9 |
References
- https://github.com/capricorn86/happy-dom/blob/f8d8cad41e9722fab9eefb9dfb3cca696462e908/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts · Patch, WEB
- https://github.com/capricorn86/happy-dom/commit/68324c21d7b98f53f7bb5a7b3e185bda7106e751 · Patch, WEB
- https://github.com/capricorn86/happy-dom/pull/2117 · Issue Tracking, Patch, WEB
- https://github.com/capricorn86/happy-dom/releases/tag/v20.8.9 · Product, Release Notes, WEB
- https://github.com/capricorn86/happy-dom/security/advisories/GHSA-w4gp-fjgq-3q4g · Exploit, Vendor Advisory, WEB
- https://access.redhat.com/security/cve/CVE-2026-34226
- https://bugzilla.redhat.com/show_bug.cgi?id=2452519
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34226.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-34226 · ADVISORY
- https://github.com/capricorn86/happy-dom · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 27 Mar 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 29 Mar 2026)