CVE-2026-34226
published high CVSS 3.1 · 7.5Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| capricorn86 | — | happy-dom< 20.8.9 | Affected | Not stated | GitHub_M |
| Red Hat | — | ansible-automation-platform-26/gateway-rhel9Red Hat Ansible Automation Platform 2 | Affected | Not stated | redhat-SADP |
| Red Hat | — | openshift4/ose-agent-installer-ui-rhel9Red Hat OpenShift Container Platform 4 | Unaffected | Not required | redhat-SADP |
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.
A flaw was found in Happy DOM, a JavaScript implementation of a web browser without its graphical user interface. This vulnerability allows for information disclosure where cookies from the current page's origin can be inadvertently attached to network requests made to a different destination. This occurs when the `fetch` function is used with the `credentials: "include"` option, potentially leading to the leakage of sensitive user data to unintended recipients.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | redhat-SADP · adp | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| capricorn86 | happy-dom | < 20.8.9 (affected) | GitHub_M · cna |
| Red Hat | Red Hat Ansible Automation Platform 2 | Default: affected | redhat-SADP · adp |
| Red Hat | Red Hat OpenShift Container Platform 4 | Default: unaffected | redhat-SADP · adp |
Weaknesses
3- CWE-201 CWE-201: Insertion of Sensitive Information Into Sent Data
- CWE-359 CWE-359: Exposure of Private Personal Information to an Unauthorized Actor
- CWE-201 Insertion of Sensitive Information Into Sent Data
References
8- https://access.redhat.com/security/cve/CVE-2026-34226
- RHBZ#2452519 https://bugzilla.redhat.com/show_bug.cgi?id=2452519
- https://github.com/capricorn86/happy-dom/blob/f8d8cad41e9722fab9eefb9dfb3cca696462e908/packages/happy-dom/src/fetch/utilities/FetchRequestHeaderUtility.ts
- https://github.com/capricorn86/happy-dom/commit/68324c21d7b98f53f7bb5a7b3e185bda7106e751
- https://github.com/capricorn86/happy-dom/pull/2117
- https://github.com/capricorn86/happy-dom/releases/tag/v20.8.9
- https://github.com/capricorn86/happy-dom/security/advisories/GHSA-w4gp-fjgq-3q4g
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-34226.json
Provider assertions
3GitHub_M · cna
Happy DOM's fetch credentials include uses page-origin cookies instead of target-origin cookies
redhat-SADP · adp
happy-dom: Happy DOM: Information disclosure via incorrect cookie handling in fetch requests
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 4c29cc0d3b20d5c38e3f3682b7ab18b145036b74477da5c2a1146700c9f0a6ed
- Ingested
- 23 Sep 2026, 09:10:54 UTC
- Source record
- Official CVE record