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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2026-03-27 · Modified: 2026-07-15
- Aliases: GHSA-w4gp-fjgq-3q4g
- Record: https://cvemate.com/vulnerability/CVE-2026-34226 · JSON: https://cvemate.com/vulnerability/CVE-2026-34226/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.521%, percentile 45.765%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- capricorn86 happy\_dom: \< 20.8.9
- capricorn86 happy-dom: \< 20.8.9
- Npm happy-dom (Npm): \< 20.8.9

## References

- <https://github.com/capricorn86/happy-dom/security/advisories/GHSA-w4gp-fjgq-3q4g>
- <https://github.com/capricorn86/happy-dom/pull/2117>
- <https://github.com/capricorn86/happy-dom/commit/68324c21d7b98f53f7bb5a7b3e185bda7106e751>
- <https://github.com/capricorn86/happy-dom/blob/f8d8cad41e9722fab9eefb9dfb3cca696462e908/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts>
- <https://github.com/capricorn86/happy-dom/releases/tag/v20.8.9>
- <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>
- <https://github.com/capricorn86/happy-dom>

---

Data as of 2026-12-05T06:50:29.817Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
