CVE-2026-16729
Published:July 29, 2026
Updated:August 02, 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.
Affected Packages
https://github.com/nodejs/undici.git (GITHUB):
Affected version(s) >=v8.0.0 <v8.9.0Fix Suggestion:
Update to version v8.9.0https://github.com/nodejs/undici.git (GITHUB):
Affected version(s) >=v7.0.0 <v7.29.0Fix Suggestion:
Update to version v7.29.0https://github.com/nodejs/undici.git (GITHUB):
Affected version(s) >=v6.21.0 <v6.28.0Fix Suggestion:
Update to version v6.28.0undici (NPM):
Affected version(s) >=0.1.0 <6.28.0Fix Suggestion:
Update to version 6.28.0undici (NPM):
Affected version(s) >=7.0.0 <7.29.0Fix Suggestion:
Update to version 7.29.0undici (NPM):
Affected version(s) >=8.0.0 <8.9.0Fix Suggestion:
Update to version 8.9.0Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
6.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
LOW
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.8
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
LOW
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
EPSS
Base Score:
0.18