undici vulnerable to HTTP header injection via Set-Cookie percent-decoding
Published Jun 17, 2026
5.9
MEDIUMCVSS 3.1
EPSS 0.33%
Description
Impact: undici's cookie parser in parseSetCookie percent-decodes cookie values via qsUnescape, turning encoded sequences like %0D%0A, %00, %3B, and %3D into their literal byte equivalents. RFC 6265 §5.4 does not specify any decoding and browsers do not decode either.
Applications that parse a Set-Cookie header and then forward the parsed value into a response header (proxies, middleware, SSR frameworks) become vulnerable to HTTP response header injection: an attacker-controlled upstream can inject arbitrary Set-Cookie, Location, or Cache-Control headers into the application's downstream response, enabling session fixation, open redirect, or cache poisoning.
Affected applications are those that use undici's cookie parsing (parseSetCookie, parseCookie, getSetCookies) and forward the parsed cookie value into a response header.
This was introduced in undici 7.0.0 via PR #3789.
Patches: Upgrade to undici v6.26.0, v7.28.0 or v8.5.0.
Workarounds: If upgrade is not immediately possible, do not forward values returned by parseSetCookie/parseCookie/getSetCookies directly into response headers; sanitize the value first to strip or reject CR, LF, NUL, ;, and = bytes.
Affected products
-
- Version 0StatusaffectedConstraints<6.26.0
- Version 7.0.0StatusaffectedConstraints<7.28.0
- Version 8.0.0StatusaffectedConstraints<8.5.0
- Version 6.26.0StatusunaffectedConstraints-
- Version 7.28.0StatusunaffectedConstraints-
- Version 8.5.0StatusunaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
No data.
Red Hat Hardened Images
nodejs24-main-24.18.0-0.3.hum1
Fixed · RHSA-2026:38236
Red Hat Hardened Images
nodejs26-main-26.5.0-1.3.hum1
Fixed · RHSA-2026:38009
Red Hat Openshift Data Foundation 4.18
odf4/cephcsi-rhel9-operator:1786706101
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/cephcsi-rhel9:1786705347
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/mcg-core-rhel9:1786705558
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/mcg-rhel9-operator:1786705646
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/ocs-client-console-rhel9:1786706138
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/ocs-client-rhel9-operator:1786705741
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/ocs-metrics-exporter-rhel9:1786705777
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/ocs-rhel9-operator:1786705802
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/odf-cli-rhel9:1786705938
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/odf-console-rhel9:1786706577
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/odf-cosi-sidecar-rhel9:1786706125
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/odf-csi-addons-rhel9-operator:1786706177
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/odf-csi-addons-sidecar-rhel9:1786706188
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/odf-multicluster-console-rhel9:1786706679
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/odf-multicluster-rhel9-operator:1786706357
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/odf-must-gather-rhel9:1786706612
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/odf-rhel9-operator:1786706644
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/odr-rhel9-operator:1786706659
Fixed · RHSA-2026:56431
Red Hat Openshift Data Foundation 4.18
odf4/rook-ceph-rhel9-operator:1786706880
Fixed · RHSA-2026:56431
Cryostat 4
cryostat-openshift-console-plugin-npm
Fix deferred
Cryostat 4
grafana-infinity-datasource-npm
Fix deferred
Cryostat 4
undici
Fix deferred
OpenShift Pipelines
openshift-pipelines/pipelines-console-plugin-pf5-rhel9
Fix deferred
OpenShift Pipelines
openshift-pipelines/pipelines-console-plugin-rhel8
Fix deferred
OpenShift Pipelines
openshift-pipelines/pipelines-console-plugin-rhel9
Fix deferred
Red Hat AMQ Broker 7
undici
Fix deferred
Red Hat Build of Podman Desktop
rh-podman-desktop.git
Fix deferred
Red Hat Developer Hub
rhdh/rhdh-hub-rhel9
Fix deferred
Red Hat Enterprise Linux 10
nodejs22
Fix deferred
Red Hat Enterprise Linux 10
nodejs24
Fix deferred
Red Hat Enterprise Linux 8
nodejs
Fix deferred
Red Hat Enterprise Linux 9
nodejs:22/nodejs
Fix deferred
Red Hat Enterprise Linux 9
nodejs:24/nodejs
Fix deferred
Red Hat Hardened Images
nodejs25
Will not fix
Red Hat Hardened Images
rust
Affected
Red Hat OpenShift AI (RHOAI)
rhoai/odh-dashboard-rhel9
Fix deferred
Red Hat OpenShift AI (RHOAI)
rhoai/odh-mod-arch-automl-rhel9
Fix deferred
Red Hat OpenShift AI (RHOAI)
rhoai/odh-mod-arch-autorag-rhel9
Fix deferred
Red Hat OpenShift AI (RHOAI)
rhoai/odh-mod-arch-eval-hub-rhel9
Fix deferred
Red Hat OpenShift AI (RHOAI)
rhoai/odh-mod-arch-gen-ai-rhel9
Fix deferred
Red Hat OpenShift AI (RHOAI)
rhoai/odh-mod-arch-maas-rhel9
Fix deferred
Red Hat OpenShift AI (RHOAI)
rhoai/odh-mod-arch-mlflow-rhel9
Fix deferred
Red Hat OpenShift AI (RHOAI)
rhoai/odh-mod-arch-model-registry-rhel9
Fix deferred
Red Hat OpenShift AI (RHOAI)
rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9
Fix deferred
Red Hat OpenShift Container Platform 4
openshift4/ose-agent-installer-ui-rhel9
Fix deferred
Red Hat OpenShift Container Platform 4
openshift4/ose-console-rhel9
Fix deferred
Red Hat OpenShift Container Platform 4
openshift4/ose-monitoring-plugin-rhel9
Fix deferred
Red Hat OpenShift Dev Spaces
devspaces/code-rhel9
Fix deferred
Red Hat OpenShift Dev Spaces
devspaces/dashboard-rhel9
Fix deferred
Red Hat OpenShift Dev Spaces
devspaces/openvsx-rhel9
Fix deferred
Red Hat OpenShift Dev Spaces
devspaces/pluginregistry-rhel9
Fix deferred
Self-service automation portal 2
ansible-automation-platform/automation-portal
Fix deferred
Self-service automation portal 2
ansible-automation-platform/bootc-automation-portal-rhel9
Fix deferred
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Hardened Images | nodejs24-main-24.18.0-0.3.hum1 | Fixed | RHSA-2026:38236 |
| Red Hat Hardened Images | nodejs26-main-26.5.0-1.3.hum1 | Fixed | RHSA-2026:38009 |
| Red Hat Openshift Data Foundation 4.18 | odf4/cephcsi-rhel9-operator:1786706101 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/cephcsi-rhel9:1786705347 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/mcg-core-rhel9:1786705558 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/mcg-rhel9-operator:1786705646 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/ocs-client-console-rhel9:1786706138 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/ocs-client-rhel9-operator:1786705741 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/ocs-metrics-exporter-rhel9:1786705777 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/ocs-rhel9-operator:1786705802 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/odf-cli-rhel9:1786705938 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/odf-console-rhel9:1786706577 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/odf-cosi-sidecar-rhel9:1786706125 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/odf-csi-addons-rhel9-operator:1786706177 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/odf-csi-addons-sidecar-rhel9:1786706188 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/odf-multicluster-console-rhel9:1786706679 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/odf-multicluster-rhel9-operator:1786706357 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/odf-must-gather-rhel9:1786706612 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/odf-rhel9-operator:1786706644 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/odr-rhel9-operator:1786706659 | Fixed | RHSA-2026:56431 |
| Red Hat Openshift Data Foundation 4.18 | odf4/rook-ceph-rhel9-operator:1786706880 | Fixed | RHSA-2026:56431 |
| Cryostat 4 | cryostat-openshift-console-plugin-npm | Fix deferred | n/a |
| Cryostat 4 | grafana-infinity-datasource-npm | Fix deferred | n/a |
| Cryostat 4 | undici | Fix deferred | n/a |
| OpenShift Pipelines | openshift-pipelines/pipelines-console-plugin-pf5-rhel9 | Fix deferred | n/a |
| OpenShift Pipelines | openshift-pipelines/pipelines-console-plugin-rhel8 | Fix deferred | n/a |
| OpenShift Pipelines | openshift-pipelines/pipelines-console-plugin-rhel9 | Fix deferred | n/a |
| Red Hat AMQ Broker 7 | undici | Fix deferred | n/a |
| Red Hat Build of Podman Desktop | rh-podman-desktop.git | Fix deferred | n/a |
| Red Hat Developer Hub | rhdh/rhdh-hub-rhel9 | Fix deferred | n/a |
| Red Hat Enterprise Linux 10 | nodejs22 | Fix deferred | n/a |
| Red Hat Enterprise Linux 10 | nodejs24 | Fix deferred | n/a |
| Red Hat Enterprise Linux 8 | nodejs | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | nodejs:22/nodejs | Fix deferred | n/a |
| Red Hat Enterprise Linux 9 | nodejs:24/nodejs | Fix deferred | n/a |
| Red Hat Hardened Images | nodejs25 | Will not fix | n/a |
| Red Hat Hardened Images | rust | Affected | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-dashboard-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mod-arch-automl-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mod-arch-autorag-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mod-arch-eval-hub-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mod-arch-gen-ai-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mod-arch-maas-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mod-arch-mlflow-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-mod-arch-model-registry-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift AI (RHOAI) | rhoai/odh-workbench-codeserver-datascience-cpu-py312-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-agent-installer-ui-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-console-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift Container Platform 4 | openshift4/ose-monitoring-plugin-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift Dev Spaces | devspaces/code-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift Dev Spaces | devspaces/dashboard-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift Dev Spaces | devspaces/openvsx-rhel9 | Fix deferred | n/a |
| Red Hat OpenShift Dev Spaces | devspaces/pluginregistry-rhel9 | Fix deferred | n/a |
| Self-service automation portal 2 | ansible-automation-platform/automation-portal | Fix deferred | n/a |
| Self-service automation portal 2 | ansible-automation-platform/bootc-automation-portal-rhel9 | Fix deferred | n/a |
undici
npm
Introduced 0 Fixed 6.27.0undici
npm
Introduced 7.0.0 Fixed 7.28.0undici
npm
Introduced 8.0.0 Fixed 8.5.0
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| npm | undici | 0 | 6.27.0 |
| npm | undici | 7.0.0 | 7.28.0 |
| npm | undici | 8.0.0 | 8.5.0 |
Remediation
Red Hat statement
Moderate: A flaw in the `undici` library's cookie parser can lead to HTTP response header injection. This occurs when applications, such as proxies or middleware, incorrectly forward percent-decoded cookie values from upstream into downstream response headers. Successful exploitation could result in session fixation, open redirects, or cache poisoning.
Red Hat mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Jun 17, 2026 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 3, 2026.
Score over time
Jun–Oct 2026- EPSS v5
Percentile over time
- EPSS v5
Table of values (2 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 0.33% (0.00332) | 24.12th | v5 (v2026.06.15) |
| Jun 18, 2026 | 0.21% (0.00205) | 10.51th | v5 (v2026.06.15) |
References (7)
- https://access.redhat.com/security/cve/CVE-2026-9679 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2490022 Issue Tracking
- https://cna.openjsf.org/security-advisories.html Vendor Advisory
- https://github.com/advisories/GHSA-p88m-4jfj-68fv Advisory
- https://github.com/nodejs/undici/security/advisories/GHSA-p88m-4jfj-68fv Vendor AdvisoryMitigation
- https://nvd.nist.gov/vuln/detail/CVE-2026-9679
- https://www.cve.org/CVERecord?id=CVE-2026-9679
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-9679 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2490022 | Issue Tracking | |
| https://cna.openjsf.org/security-advisories.html | Vendor Advisory | |
| https://github.com/advisories/GHSA-p88m-4jfj-68fv | Advisory | |
| https://github.com/nodejs/undici/security/advisories/GHSA-p88m-4jfj-68fv | Vendor AdvisoryMitigation | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-9679 | ||
| https://www.cve.org/CVERecord?id=CVE-2026-9679 |
Change history (0)
No recorded changes yet.