CVE-2026-11525

EUVD-2026-37758
Impact:
When undici parses a Set-Cookie header, it accepts any SameSite attribute value that contains Strict, Lax, or None as a substring, rather than the case-insensitive exact match specified by RFC 6265. Non-spec values are silently mapped to one of the three standard tokens. For example, SameSite=NoneOfYourBusiness is parsed as None (the most permissive setting), and SameSite=StrictLax is parsed as Lax (a downgrade from Strict).

Affected applications are those that consume Set-Cookie headers from server responses (for example via undici's fetch or proxy code paths) and then forward or rely on the parsed sameSite attribute. A malicious or non-compliant server can coerce the consumer's view of a cookie's SameSite policy to a weaker value, silently degrading the SameSite enforcement the cookie is supposed to provide.

This was introduced in undici 5.15.0 when the cookies feature was added.

Patches:
Upgrade to undici v6.26.0, v7.28.0 or v8.5.0.

Workarounds:
After parsing a Set-Cookie header, validate that the resulting sameSite attribute is one of 'Strict', 'Lax', or 'None' (exact, case-insensitive) before forwarding or relying on it.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
3.7 LOW
NETWORK
HIGH
NONE
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 15%
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
postponed
bookworm (security)
vulnerable
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