CVE-2026-16729
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
undicinpm | < 6.28.0 | 6.28.0 |
undicinpm | >= 7.0.0, < 7.29.0 | 7.29.0 |
undicinpm | >= 8.0.0, < 8.9.0 | 8.9.0 |
Affected products
33- osv-coords31 versionspkg:apk/chainguard/langfuse-3-workerpkg:apk/chainguard/langfuse-fips-4pkg:apk/chainguard/npm-12pkg:apk/chainguard/pelias-apipkg:apk/chainguard/prismpkg:apk/chainguard/vitess-24pkg:apk/wolfi/code-serverpkg:apk/wolfi/langfuse-3-workerpkg:apk/wolfi/npm-12pkg:apk/wolfi/pulumi-language-nodejspkg:apk/chainguard/kibana-9.2-iamguardedpkg:apk/chainguard/kibana-8.19-iamguardedpkg:apk/chainguard/langfuse-3pkg:apk/wolfi/langfuse-3pkg:apk/wolfi/prismpkg:apk/chainguard/langfuse-4-workerpkg:apk/chainguard/langfuse-fips-3pkg:apk/chainguard/safpkg:apk/wolfi/safpkg:apk/chainguard/actions-runnerpkg:apk/chainguard/kibana-8.19-bitnamipkg:apk/chainguard/kibana-9.2pkg:apk/wolfi/renovatepkg:apk/wolfi/vitess-24pkg:apk/chainguard/langfuse-fips-3-workerpkg:apk/chainguard/pulumi-language-nodejspkg:apk/chainguard/langfuse-fips-4-workerpkg:apk/chainguard/code-serverpkg:apk/chainguard/kibana-8.19pkg:apk/chainguard/renovatepkg:apk/chainguard/langfuse-4
< 3.225.0-r3+ 30 more
- (no CPE)range: < 3.225.0-r3
- (no CPE)range: < 4.4.0-r0
- (no CPE)range: < 12.0.2-r2
- (no CPE)range: < 7.8.0-r7
- (no CPE)range: < 5.16.0-r2
- (no CPE)range: < 24.0.2-r10
- (no CPE)range: < 4.130.0-r5
- (no CPE)range: < 3.225.0-r3
- (no CPE)range: < 12.0.2-r2
- (no CPE)range: < 3.256.0-r1
- (no CPE)range: < 9.2.8-r19
- (no CPE)range: < 8.19.20-r2
- (no CPE)range: < 3.225.0-r3
- (no CPE)range: < 3.225.0-r3
- (no CPE)range: < 5.16.0-r2
- (no CPE)range: < 4.3.1-r3
- (no CPE)range: < 3.224.3-r9
- (no CPE)range: < 1.7.0-r0
- (no CPE)range: < 1.7.0-r0
- (no CPE)range: < 2.336.0-r5
- (no CPE)range: < 8.19.20-r2
- (no CPE)range: < 9.2.8-r19
- (no CPE)range: < 44.23.3-r1
- (no CPE)range: < 24.0.2-r10
- (no CPE)range: < 3.224.3-r9
- (no CPE)range: < 3.256.0-r1
- (no CPE)range: < 4.4.0-r0
- (no CPE)range: < 4.130.0-r5
- (no CPE)range: < 8.19.20-r2
- (no CPE)range: < 44.23.3-r1
- (no CPE)range: < 4.3.1-r3
Patches
Vulnerability mechanics
References
10- cna.openjsf.org/security-advisories.htmlnvdVendor AdvisoryWEB
- github.com/advisories/GHSA-v3r7-h72x-cjcmghsaADVISORY
- github.com/nodejs/undici/security/advisories/GHSA-v3r7-h72x-cjcmnvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2026-16729ghsaADVISORY
- github.com/nodejs/undici/commit/10d93fc332f2c8c161982dec3833201de29891b5ghsaWEB
- github.com/nodejs/undici/commit/3bf91ddb493e853957f3a58e155326a668ab8aefghsaWEB
- github.com/nodejs/undici/commit/af7484043ee075a6f216da0ad77e1dac55199235ghsaWEB
- github.com/nodejs/undici/releases/tag/v6.28.0ghsaWEB
- github.com/nodejs/undici/releases/tag/v7.29.0ghsaWEB
- github.com/nodejs/undici/releases/tag/v8.9.0ghsaWEB
News mentions
1- Undici npm Package: Five Vulnerabilities Disclosed Together Affecting HTTP Client FunctionsVypr Intelligence · Jul 30, 2026