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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-27T21:17:24.777Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-w4gp-fjgq-3q4g
- Weaknesses: CWE-201, CWE-359
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- capricorn86 happy-dom: < 20.8.9
- ansible-automation-platform-26/gateway-rhel9: no versions given
- openshift4/ose-agent-installer-ui-rhel9: no versions given
- happy-dom (npm): before 20.8.9
- capricorn86 happy_dom: before 20.8.9

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- redhat-SADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/capricorn86/happy-dom/security/advisories/GHSA-w4gp-fjgq-3q4g> (exploit, vendor-advisory, web)
- <https://github.com/capricorn86/happy-dom/pull/2117> (issue-tracking, patch, web)
- <https://github.com/capricorn86/happy-dom/commit/68324c21d7b98f53f7bb5a7b3e185bda7106e751> (patch, web)
- <https://github.com/capricorn86/happy-dom/blob/f8d8cad41e9722fab9eefb9dfb3cca696462e908/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts> (patch, web)
- <https://github.com/capricorn86/happy-dom/releases/tag/v20.8.9> (product, release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-34226> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2452519> (issue-tracking)
- <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)

## Sources

- CVE List: [CVE-2026-34226](https://www.cve.org/CVERecord?id=CVE-2026-34226), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-w4gp-fjgq-3q4g](https://github.com/advisories/GHSA-w4gp-fjgq-3q4g), CC-BY-4.0, modified 2026-03-29
- NVD: [CVE-2026-34226](https://nvd.nist.gov/vuln/detail/CVE-2026-34226), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-34226 · Whole record: https://cve.day/CVE-2026-34226.json · Rebuilt by cve.day 2026-11-25T22:59:17.458Z
