CVE-2026-16729
undici: Undici: Cookie attribute injection allows bypassing security protections
Overview
Description
undici's setCookie function does not fully sanitize cookie attributes. In undici before 6.28.0, from 7.0.0 up to before 7.29.0, and from 8.0.0 up to before 8.9.0, a domain value is not checked for semicolons and entries in the unparsed array are not sanitized, so attacker-influenced input can inject additional cookie attributes. For example, a domain value containing a semicolon can append attributes such as SameSite, and an unparsed entry can inject attributes such as HttpOnly, without the caller setting them. Applications that pass user-controlled input to these fields, such as multi-tenant or reverse-proxy servers that scope session cookies to a tenant-supplied domain, can have SameSite CSRF protections bypassed, or the Secure, HttpOnly, and SameSite attributes forced, stripped, or overridden. The issue is fixed in undici 6.28.0, 7.29.0, and 8.9.0.
Source: OX vulnerability database
Severity
6.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
Weakness: CWE-74
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | undici | <6.28.0>=7.0.0, <7.29.0>=8.0.0, <8.9.0 | 6.28.07.29.08.9.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-sp999>=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-sp9997.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-sp999>=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-sp9997.18.2-sp9997.19.2-sp2p2 |
Open a package to see all its vulnerabilities.
Operating systems · 62 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | nodejs | 0:24.22.0-1.azl3 |
SUSE Linux Enterprise 4 releases · 2 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 |
amazon linux 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nodejs22-npm | 1:10.9.8-1.22.23.2.1.amzn2023.0.2 |
| 2023 | nodejs24-npm | 1:11.16.0-1.24.18.1.1.amzn2023.0.2 |
| 2023 | nodejs22 +7 | 1:22.23.2-1.amzn2023.0.2 |
| 2023 | nodejs24 +7 | 1:24.18.1-1.amzn2023.0.2 |
| 2023 | v8-12-4-devel | 3:12.4.254.21-1.22.23.2.1.amzn2023.0.2 |
| 2023 | v8-13-6-devel | 3:13.6.233.17-1.24.18.1.1.amzn2023.0.2 |
chainguard 1 release · 21 packages
| Release | Package | Fixed in |
|---|---|---|
| saf | 1.7.0-r0 | |
| npm-12 | 12.0.2-r2 | |
| commercial-gitlab-rails-ee-19-1 | 19.1.7-r3 | |
| commercial-gitlab-rails-ee-fips-19-1 | 19.1.9-r0 | |
| commercial-gitlab-rails-ee-19-2 +1 | 19.2.7-r1 | |
| commercial-gitlab-rails-ee-19-3 +1 | 19.3.3-r1 |
15 more rows
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | node-undici | affected |
| 13 | node-undici | affected |
| 14 | node-undici | 8.9.0+dfsg+~cs3.2.0-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| node-undici | 7.3.0+dfsg1+~cs24.12.11-1+e1 |
minimos 1 release · 17 packages
| Release | Package | Fixed in |
|---|---|---|
| grist | 1.7.18-r0 | |
| npm | 12.0.2-r1 | |
| node-gyp | 13.0.2-r0 | |
| nginx-proxy-manager-2 | 2.16.0-r0 | |
| n8n | 2.36.6-r0 | |
| uptime-kuma-2-5 | 2.5.3-r0 |
11 more rows
wolfi 1 release · 8 packages
| Release | Package | Fixed in |
|---|---|---|
| saf | 1.7.0-r0 | |
| npm-12 | 12.0.2-r2 | |
| vitess-24 | 24.0.3-r7 | |
| langfuse-3 | 3.225.7-r6 | |
| pulumi | 3.256.0-r1 | |
| code-server | 4.130.0-r5 |
2 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-16729
- cna.openjsf.org https://cna.openjsf.org/security-advisories.html
- github.com https://github.com/nodejs/undici
- github.com https://github.com/nodejs/undici/commit/10d93fc332f2c8c161982dec3833201de29891b5
- github.com https://github.com/nodejs/undici/commit/3bf91ddb493e853957f3a58e155326a668ab8aef
- github.com https://github.com/nodejs/undici/commit/af7484043ee075a6f216da0ad77e1dac55199235
- github.com https://github.com/nodejs/undici/releases/tag/v6.28.0
- github.com https://github.com/nodejs/undici/releases/tag/v7.29.0
- github.com https://github.com/nodejs/undici/releases/tag/v8.9.0
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-v3r7-h72x-cjcm
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.