CVE-2026-16729: undici - Cookie Attribute Injection
- Cve: CVE-2026-16729
- Name: undici - Cookie Attribute Injection
- 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.
- Impact: Attackers can inject or override cookie attributes, potentially bypassing SameSite CSRF protections and manipulating Secure or HttpOnly flags.
- Remediation: Update to versions 6.28.0, 7.29.0, or 8.9.0 or later.
- Vulnerability type: broken_access_control
- Vulnerability impact: broken_access_control
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
- Epss score: 0.00278
- Epss percentile: 0.20539
- Assignee: ce714d77-add3-4f53-aff5-83d477b104bb
- Published at: 2026-07-29T17:16:51Z
- Age in days: 118
- Modified at: 2026-08-05T15:18:55Z
- Patch available: yes
- References total: 2
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-16729
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component |
References
| Url | Source | Tags |
|---|---|---|
| https://cna.openjsf.org/security-advisories.html | nvd | Vendor Advisory |
| https://github.com/nodejs/undici/security/advisories/GHSA-v3r7-h72x-cjcm | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| nodejs:undici | >= 8.0.0, < 8.9.0; >= 7.0.0, < 7.29.0; < 6.28.0 | no | nvd | /v1/products/nodejs/undici |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| nodejs/undici | commit, fix, package, releases, security_advisory | yes | /v1/repositories/nodejs/undici |
Index
- Repositories: 1185
- Repositories high signal: 834
- Packages: 1
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts