CVE-2026-9679
undici: undici vulnerable to HTTP header injection via Set-Cookie percent-decoding
Overview
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.
Source: OX vulnerability database
Severity
5.9 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Weakness: CWE-93
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | undici | <6.27.0>=7.0.0, <7.28.0>=8.0.0, <8.5.0 | 6.27.07.28.08.5.0 |
| Seal npm | @seal-security/undici | >=4.16.0-sp1, <4.16.0-sp999>=6.21.1-sp1, <6.21.1-sp999>=6.23.0-sp1, <6.23.0-sp2>=7.18.2-sp1, <7.18.2-sp999>=7.19.2-sp1, <7.19.2-sp2p2+1 more | 4.16.0-sp9996.21.1-sp9996.23.0-sp27.18.2-sp9997.19.2-sp2p2 |
| Seal npm | undici | >=4.16.0-sp0, <4.16.0-sp999>=6.21.1-sp0, <6.21.1-sp999>=6.23.0-sp0, <6.23.0-sp2>=7.18.2-sp0, <7.18.2-sp999>=7.19.2-sp0, <7.19.2-sp2p2+1 more | 4.16.0-sp9996.21.1-sp9996.23.0-sp27.18.2-sp9997.19.2-sp2p2 |
Open a package to see all its vulnerabilities.
Operating systems · 65 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | nodejs | 0:24.17.0-2.azl3 |
Red Hat 5 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | openshift4-ose-agent-installer-ui-rhel9 +2 | affected |
| 8 | nodejs +13 | affected |
| 9 | openshift4-ose-agent-installer-ui-rhel9 +2 | affected |
| 9 (nodejs:22) | nodejs +4 | affected |
| 9 (nodejs:24) | nodejs +4 | affected |
SUSE Linux Enterprise 6 releases · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | nodejs18 +3 | 18.20.8-8.44.1 | SUSE-SU-2026:4248-1 |
| 15.4 | nodejs18 +3 | 18.20.8-150400.9.39.1 | SUSE-SU-2026:4261-1 |
| 15.5 | nodejs18 +3 | 18.20.8-150400.9.39.1 | SUSE-SU-2026:4261-1 |
| 15.5 | nodejs20 +3 | 20.20.2-150500.11.30.1 | SUSE-SU-2026:3930-1 |
| 15.6 | nodejs20 +3 | 20.20.2-150600.3.21.1 | SUSE-SU-2026:3929-1 |
| 15.6 | nodejs22 +3 | 22.23.0-150600.13.18.1 | SUSE-SU-2026:2647-1 |
4 more rows
amazon linux 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nodejs22-npm | 1:10.9.8-1.22.23.1.1.amzn2023.0.1 |
| 2023 | nodejs24-npm | 1:11.16.0-1.24.18.0.1.amzn2023.0.1 |
| 2023 | nodejs22 +7 | 1:22.23.1-1.amzn2023.0.1 |
| 2023 | nodejs24 +7 | 1:24.18.0-1.amzn2023.0.1 |
| 2023 | v8-12-4-devel | 3:12.4.254.21-1.22.23.1.1.amzn2023.0.1 |
| 2023 | v8-13-6-devel | 3:13.6.233.17-1.24.18.0.1.amzn2023.0.1 |
chainguard 1 release · 21 packages
| Release | Package | Fixed in |
|---|---|---|
| gemini-cli | 0.49.0-r4 | |
| py3-captum | 0.9.0-r1 | |
| saf | 1.6.0-r2 | |
| npm | 11.17.0-r1 | |
| node-gyp | 13.0.0-r1 | |
| commercial-gitlab-rails-ee-19-1 | 19.1.7-r3 |
15 more rows
debian 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 13 | node-undici | affected |
| 14 | node-undici | 8.5.0+dfsg+~cs3.2.0-1 |
minimos 1 release · 10 packages
| Release | Package | Fixed in |
|---|---|---|
| npm | 11.18.0-r0 | |
| node-gyp | 13.0.1-r0 | |
| nginx-proxy-manager-2 | 2.15.1-r1 | |
| n8n | 2.31.5-r0 | |
| openclaw | 2026.6.9-r0 | |
| langfuse-3 | 3.194.0-r0 |
4 more rows
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | corepack24 +4 | 24.17.0-1.1 | openSUSE-SU-2026:11121-1 |
openSUSE Leap 1 release · 2 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 16.0 | corepack22 +4 | 22.23.0-160000.1.1 | openSUSE-SU-2026:21058-1 |
| 16.0 | corepack24 +4 | 24.18.0-160000.1.1 | openSUSE-SU-2026:21236-1 |
wolfi 1 release · 7 packages
| Release | Package | Fixed in |
|---|---|---|
| saf | 1.6.0-r2 | |
| npm | 11.17.0-r1 | |
| node-gyp | 13.0.0-r1 | |
| vitess-24 | 24.0.3-r7 | |
| code-server | 4.125.0-r2 | |
| renovate | 43.249.5-r2 |
1 more row
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-9679
- cna.openjsf.org https://cna.openjsf.org/security-advisories.html
- github.com https://github.com/nodejs/undici
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-p88m-4jfj-68fv
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-9679
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-9679
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.