CVE-2026-34226 Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies
HighCVSS 7.5
EPSS 0.48%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
6 packages: 2 fixed, 2 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat ansible automation platform | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| capricorn86 happy dom | < 20.8.9 | 20.8.9 | Fixed |
| npm happy-dom(npm) | < 20.8.9 | 20.8.9 | Fixed |
| capricorn86 happy-dom | = < 20.8.9 | No fix listed | Versions listed |
| redhat openshift | = 4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| capricorn86 happy-dom | = < 20.8.9 | No fix listed |
| redhat ansible automation platform | All versions | No fix listed |
| redhat openshift | = 4 | No fix listed |
| npm happy-dom(npm) | < 20.8.9 | 20.8.9 |
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| capricorn86 happy dom | < 20.8.9 | 20.8.9 |
References
- https://github.com/capricorn86/happy-dom/security/advisories/GHSA-w4gp-fjgq-3q4g exploit vendor-advisory
- https://github.com/capricorn86/happy-dom/pull/2117 issue-tracking patch
- https://github.com/capricorn86/happy-dom/commit/68324c21d7b98f53f7bb5a7b3e185bda7106e751 patch
- https://github.com/capricorn86/happy-dom/blob/f8d8cad41e9722fab9eefb9dfb3cca696462e908/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts patch
- https://github.com/capricorn86/happy-dom/releases/tag/v20.8.9 product release-notes
- Red Hat CVE page vdb-entry vendor-advisory
- RHBZ#2452519 issue-tracking
- security.access.redhat.com
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- www.cve.org
- github.com product