CVE-2026-9679

EUVD-2026-37764
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.
CRLF Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
5.9 MEDIUM
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 17%
Affected Products (NVD)
VendorProductVersion
nodejsundici
𝑥
< 6.27.0
nodejsundici
7.0.0 ≤
𝑥
< 7.28.0
nodejsundici
8.0.0 ≤
𝑥
< 8.5.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
node-undici
bookworm
5.15.0+dfsg1+~cs20.10.9.3-1+deb12u4
fixed
bookworm (security)
5.15.0+dfsg1+~cs20.10.9.3-1+deb12u3
fixed
forky
8.5.0+dfsg+~cs3.2.0-3
fixed
sid
8.9.0+dfsg+~cs3.2.0-1
fixed
trixie
no-dsa
openSUSE logo
openSUSE / SLES Releases
openSUSE Product
Release
nodejs22
suse enterprise sap 15 SP7
22.23.0-150700.3.12.1
fixed
suse enterprise server 15 SP6
22.23.0-150600.13.18.1
fixed
suse enterprise server 15 SP7
22.23.0-150700.3.12.1
fixed
nodejs22-devel
suse enterprise sap 15 SP7
22.23.0-150700.3.12.1
fixed
suse enterprise server 15 SP6
22.23.0-150600.13.18.1
fixed
suse enterprise server 15 SP7
22.23.0-150700.3.12.1
fixed
nodejs22-docs
suse enterprise sap 15 SP7
22.23.0-150700.3.12.1
fixed
suse enterprise server 15 SP6
22.23.0-150600.13.18.1
fixed
suse enterprise server 15 SP7
22.23.0-150700.3.12.1
fixed
nodejs24
suse enterprise sap 15 SP7
24.17.0-150700.15.11.1
fixed
suse enterprise server 15 SP7
24.17.0-150700.15.11.1
fixed
nodejs24-devel
suse enterprise sap 15 SP7
24.17.0-150700.15.11.1
fixed
suse enterprise server 15 SP7
24.17.0-150700.15.11.1
fixed
nodejs24-docs
suse enterprise sap 15 SP7
24.17.0-150700.15.11.1
fixed
suse enterprise server 15 SP7
24.17.0-150700.15.11.1
fixed
npm22
suse enterprise sap 15 SP7
22.23.0-150700.3.12.1
fixed
suse enterprise server 15 SP6
22.23.0-150600.13.18.1
fixed
suse enterprise server 15 SP7
22.23.0-150700.3.12.1
fixed
npm24
suse enterprise sap 15 SP7
24.17.0-150700.15.11.1
fixed
suse enterprise server 15 SP7
24.17.0-150700.15.11.1
fixed
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
nodejs22
Amazon Linux 2023
1:22.23.1-1.amzn2023.0.1
fixed
nodejs22-debuginfo
Amazon Linux 2023
1:22.23.1-1.amzn2023.0.1
fixed
nodejs22-debugsource
Amazon Linux 2023
1:22.23.1-1.amzn2023.0.1
fixed
nodejs22-devel
Amazon Linux 2023
1:22.23.1-1.amzn2023.0.1
fixed
nodejs22-docs
Amazon Linux 2023
1:22.23.1-1.amzn2023.0.1
fixed
nodejs22-full-i18n
Amazon Linux 2023
1:22.23.1-1.amzn2023.0.1
fixed
nodejs22-libs
Amazon Linux 2023
1:22.23.1-1.amzn2023.0.1
fixed
nodejs22-libs-debuginfo
Amazon Linux 2023
1:22.23.1-1.amzn2023.0.1
fixed
nodejs22-npm
Amazon Linux 2023
1:10.9.8-1.22.23.1.1.amzn2023.0.1
fixed
nodejs24
Amazon Linux 2023
1:24.18.0-1.amzn2023.0.1
fixed
nodejs24-debuginfo
Amazon Linux 2023
1:24.18.0-1.amzn2023.0.1
fixed
nodejs24-debugsource
Amazon Linux 2023
1:24.18.0-1.amzn2023.0.1
fixed
nodejs24-devel
Amazon Linux 2023
1:24.18.0-1.amzn2023.0.1
fixed
nodejs24-docs
Amazon Linux 2023
1:24.18.0-1.amzn2023.0.1
fixed
nodejs24-full-i18n
Amazon Linux 2023
1:24.18.0-1.amzn2023.0.1
fixed
nodejs24-libs
Amazon Linux 2023
1:24.18.0-1.amzn2023.0.1
fixed
nodejs24-libs-debuginfo
Amazon Linux 2023
1:24.18.0-1.amzn2023.0.1
fixed
nodejs24-npm
Amazon Linux 2023
1:11.16.0-1.24.18.0.1.amzn2023.0.1
fixed
v8-12.4-devel
Amazon Linux 2023
3:12.4.254.21-1.22.23.1.1.amzn2023.0.1
fixed
v8-13.6-devel
Amazon Linux 2023
3:13.6.233.17-1.24.18.0.1.amzn2023.0.1
fixed
Azure Linux logo
Azure Linux Releases
Azure Package
Release
nodejs
Azure Linux 3.0
0:24.17.0-2.azl3
fixed