CVE-2026-16729
Reported by openjs · Published July 29, 2026
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.
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| undici | undici | 0, 6.28.0, 7.0.0 |
| chainguard | commercial-gitlab-rails-ee-19.1 | 0 |
| wolfi | npm-12 | 0 |
| chainguard | vitess-24 | 0, 0 |
| undici | undici | 8.9.0, 7.29.0, 7.0.0 |
| wolfi | saf | 0 |
| chainguard | commercial-gitlab-rails-ee-fips-19.1 | 0 |
| chainguard | commercial-gitlab-rails-ee-fips-19.3 | 0 |
| chainguard | saf | 0 |
| chainguard | commercial-gitlab-rails-ee-19.4 | 0 |
| wolfi | code-server | 0 |
| chainguard | pulumi | 0 |
| npm | undici | 0, 8.0.0, 7.0.0 |
| wolfi | pulumi | 0 |
| chainguard | langfuse-fips-4 | 0 |
| chainguard | renovate | 0, 0 |
| chainguard | commercial-gitlab-rails-ee-19.2 | 0 |
| chainguard | langfuse-4 | 0 |
| wolfi | prism | 0 |
| chainguard | prism | 0 |
…and 15 more
Timeline
- Jul 29, 2026 Coalition ESS Score
- Jul 29, 2026 CVE Published
- Jul 29, 2026 CVE Updated
- Aug 7, 2026 EPSS Score
- Aug 13, 2026 Security Advisory
- Aug 24, 2026 EPSS Score
- Sep 9, 2026 EPSS Score
- Sep 16, 2026 EPSS Score
- Sep 24, 2026 EPSS Score
- Sep 26, 2026 EPSS Score
- Oct 6, 2026 EPSS Score
- Oct 13, 2026 EPSS Score
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-16729 advisory
- https://github.com/advisories/GHSA-v3r7-h72x-cjcm advisory
- https://github.com/nodejs/undici/commit/10d93fc332f2c8c161982dec3833201de29891b5 patch
- https://github.com/nodejs/undici/commit/3bf91ddb493e853957f3a58e155326a668ab8aef patch
- https://github.com/nodejs/undici/commit/af7484043ee075a6f216da0ad77e1dac55199235 patch
- https://github.com/nodejs/undici/releases/tag/v6.28.0 url
- https://github.com/nodejs/undici/releases/tag/v7.29.0 url
- https://github.com/nodejs/undici/releases/tag/v8.9.0 url