CVE-2026-11525
undici: undici: Weakening of cookie SameSite policy due to incorrect parsing of Set-Cookie header
Overview
Description
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.
Source: OX vulnerability database
Severity
3.7 · LOW
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
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Weakness: CWE-183
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 · 163 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | nodejs | 0:24.17.0-2.azl3 |
Oracle Linux 2 releases · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | npm | 1:11.16.0-1.24.18.0.1.module+el8.10.0+90961+a86f8457 |
| 8 | nodejs +4 | 1:24.18.0-1.module+el8.10.0+90961+a86f8457 |
| 8 | nodejs-packaging +1 | 2021.06-6.module+el8.10.0+90961+a86f8457 |
| 8 | nodejs-nodemon | 3.0.3-1.module+el8.10.0+90961+a86f8457 |
| 8 | v8-12-4-devel | 3:12.4.254.21-1.22.23.1.1.module+el8.10.0+90968+e271b286 |
| 8 | v8-13-6-devel | 3:13.6.233.17-1.24.18.0.1.module+el8.10.0+90961+a86f8457 |
6 more rows
Red Hat 7 releases · 7 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | openshift4-ose-agent-installer-ui-rhel9 +2 | affected | — |
| 8 | nodejs +13 | affected | — |
| 8 (nodejs:22) | nodejs-packaging +1 | 0:2021.06-6.module+el8.10.0+24500+8eb51621 | RHSA-2026:41947 |
| 8 (nodejs:22) | nodejs-nodemon | 0:3.0.1-1.module+el8.10.0+24500+8eb51621 | RHSA-2026:41947 |
| 8 (nodejs:22) | npm | 1:10.9.8-1.22.23.1.1.module+el8.10.0+24500+8eb51621 | RHSA-2026:41947 |
| 8 (nodejs:22) | nodejs +4 | 1:22.23.1-1.module+el8.10.0+24500+8eb51621 | RHSA-2026:41947 |
17 more rows
SUSE Linux Enterprise 6 releases · 7 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | nodejs18 +3 | 18.20.8-8.44.1 | SUSE-SU-2026:4248-1 |
| 15.4 | nodejs16 +3 | 16.20.2-150400.3.42.1 | SUSE-SU-2026:4355-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 |
5 more rows
alma 5 releases · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | nodejs24-npm | 1:11.16.0-1.24.18.0.1.el10_2 |
| 10 | nodejs-docs | 1:22.23.1-2.el10_2 |
| 10 | nodejs24-docs | 1:24.18.0-1.el10_2 |
| 8 (nodejs:22) | npm | 1:10.9.8-1.22.23.1.1.module_el8.10.0+4231+1bf2f855 |
| 8 (nodejs:22) | nodejs +4 | 1:22.23.1-1.module_el8.10.0+4231+1bf2f855 |
| 8 (nodejs:22) | nodejs-packaging +1 | 2021.06-6.module_el8.10.0+4158+e796f37f |
17 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 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | node-undici | affected |
| 13 | node-undici | affected |
| 14 | node-undici | 8.5.0+dfsg+~cs3.2.0-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| node-undici | affected |
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 |
rocky 4 releases · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | nodejs-npm | 1:10.9.8-1.22.23.1.2.el10_2 |
| 10 | nodejs24-npm | 1:11.16.0-1.24.18.0.1.el10_2 |
| 10 | nodejs +4 | 1:22.23.1-2.el10_2 |
| 10 | nodejs24 +4 | 1:24.18.0-1.el10_2 |
| 8 (nodejs:22) | npm | 1:10.9.8-1.22.23.1.1.module+el8.10.0+40256+2fd2ac14 |
| 8 (nodejs:22) | nodejs +4 | 1:22.23.1-1.module+el8.10.0+40256+2fd2ac14 |
35 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-node-undici | affected |
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/errata/RHSA-2026:35892
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:41947
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-11525
- bugzilla.redhat.com https://bugzilla.redhat.com/2476810
- bugzilla.redhat.com https://bugzilla.redhat.com/2489980
- bugzilla.redhat.com https://bugzilla.redhat.com/2490000
- bugzilla.redhat.com https://bugzilla.redhat.com/2490006
- bugzilla.redhat.com https://bugzilla.redhat.com/2490008
- bugzilla.redhat.com https://bugzilla.redhat.com/2493325
- bugzilla.redhat.com https://bugzilla.redhat.com/2493326
Show all 52 references
- bugzilla.redhat.com https://bugzilla.redhat.com/2493329
- bugzilla.redhat.com https://bugzilla.redhat.com/2493331
- bugzilla.redhat.com https://bugzilla.redhat.com/2493332
- bugzilla.redhat.com https://bugzilla.redhat.com/2493333
- bugzilla.redhat.com https://bugzilla.redhat.com/2493335
- bugzilla.redhat.com https://bugzilla.redhat.com/2493337
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2476810
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2489980
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2490000
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2490006
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2490008
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493325
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493326
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493329
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493331
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493332
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493333
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493335
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2493337
- cna.openjsf.org https://cna.openjsf.org/security-advisories.html
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-11525
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-12151
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-42338
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48615
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48618
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48619
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48928
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48930
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48933
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48934
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-48935
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-6733
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-9678
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2026-35892.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2026:41947
- github.com https://github.com/nodejs/undici
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-g8m3-5g58-fq7m
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-11525.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-41947.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-11525
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-11525
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.