Vulnerability
CVE-2026-16729
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.
97 advisories report this vulnerability, across 10 ecosystems.
Advisories
-
ALAS2023-2026-2059
Amazon Linux 2023 - ALAS2023-2026-2059: Important priority package update for nodejs24
-
ALAS2023-2026-2060
Amazon Linux 2023 - ALAS2023-2026-2060: Important priority package update for nodejs22
-
AZL-94443
CVE-2026-16729 affecting package nodejs for versions less than 24.22.0-1
- CGA-2grq-9mw4-874f
- CGA-2p5g-9xg3-f55x
- CGA-2vq7-w2jq-cf6x
- CGA-38jg-m8hm-xrvq
- CGA-3c5v-ggg3-r7fj
- CGA-3fg7-xppm-g8pp
- CGA-3p6x-cm8q-v8c3
- CGA-4324-jcqw-2rqg
- CGA-46qw-hx9f-87f7
- CGA-4pww-rppx-53q4
- CGA-4q22-q77m-mrpx
- CGA-4rf5-ff22-cjqw
- CGA-55qj-6g7w-vv32
- CGA-584f-mmcm-vqjf
- CGA-59qp-g2jj-989h
- CGA-5qjm-r8wp-cj34
- CGA-5w57-fr4h-fc39
- CGA-63fc-rm78-fph5
- CGA-64gq-8q68-xjc4
- CGA-68qm-4w4p-q6jj
- CGA-6fx6-9x2x-jxw7
- CGA-6jg5-q4rg-cgh9
- CGA-6v72-qc9m-f666
- CGA-743j-7f7p-5rwj
- CGA-7c73-6p2f-wjjv
- CGA-7xm8-q629-xhjf
- CGA-893w-83jm-9x74
- CGA-8cq8-47p4-cx64
- CGA-8rv7-vjgj-89jr
- CGA-8vcm-9g87-mxrg
- CGA-98gp-c6hp-9c5x
- CGA-c74c-64hr-7733
- CGA-cf6j-pvcc-4w97
- CGA-cj84-25p6-j5q7
- CGA-cjmr-28q2-qr9p
- CGA-f2hq-j4jj-j9v5
- CGA-fpxm-w9f4-7g39
- CGA-fvc8-7wv3-xqh7
- CGA-fw78-c4pr-xchh
- CGA-fx3w-jm7j-q6x3
- CGA-g7q6-wpc9-xmqj
- CGA-gfc7-g8hf-chjg
- CGA-ggcg-gv62-wpcf
- CGA-gvwq-4r2m-fq3g
- CGA-h2xc-29f8-wv8x
- CGA-h5rm-p2xq-c6p2
- CGA-h7rr-4wvr-8q9p
- CGA-hw4h-g9h7-hp54
- CGA-hxmv-xwpr-66qj
- CGA-hxp9-m2c2-fh3v
- CGA-j2w4-j8jx-jm2x
- CGA-jhgx-pffj-3vg6
- CGA-jj46-wpj9-wcf7
- CGA-mmqq-8743-j7vc
- CGA-mv4x-r95w-h8gm
- CGA-p2g7-w8gh-rc98
- CGA-pf47-4jgv-4jmx
- CGA-pv49-679c-q29m
- CGA-pv97-9gf7-cxxv
- CGA-pwj6-5rxm-q53v
- CGA-q7pc-2mg8-pmh6
- CGA-qmcv-m296-x946
- CGA-qvm2-8fjp-j276
- CGA-r2r6-jvc8-xc46
- CGA-r3wp-frv5-w6qv
- CGA-rf5w-c6cq-rjv6
- CGA-rw79-5mxp-ph77
- CGA-rwhh-47mh-m3c7
- CGA-v7f7-9689-h7mf
- CGA-v7fc-78qm-pfc8
- CGA-vhpx-x94f-9v9g
- CGA-vpw7-2jjv-99mh
- CGA-vx9j-phcr-4pwm
- CGA-w3jf-fc97-9wrj
- CGA-w9xp-49mm-x2ph
- CGA-wf85-vxmq-5c9m
- CGA-whfq-q2w3-5f49
- CGA-wwp6-g9m9-hcxr
- CGA-x586-m7gj-h489
- CGA-x8h3-c59x-hgfx
- CGA-x974-32hm-454p
- CGA-xcp5-mr9h-c9rj
- CGA-xph7-crcg-65fp
- CGA-xrr4-m582-vjxg
-
DEBIAN-CVE-2026-16729
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…
-
GHSA-v3r7-h72x-cjcm
undici vulnerable to cookie attribute injection via unsanitized domain and unparsed setCookie fields
-
RHSA-2026:48273
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
RHSA-2026:48537
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
SUSE-SU-2026:3929-1
Security update for nodejs20
-
SUSE-SU-2026:3930-1
Security update for nodejs20
-
SUSE-SU-2026:4248-1
Security update for nodejs18
-
SUSE-SU-2026:4261-1
Security update for nodejs18
-
SUSEVEX-CVE-2026-16729
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…
-
UBUNTU-CVE-2026-16729
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…