Skip to content
Fencer Vulns
medium 4.8

CVE-2026-16729 json

undici vulnerable to cookie attribute injection via unsanitized domain and unparsed setCookie fields

published 2026-07-29 3 mo ago modified 2026-09-10 1 mo ago also GHSA-v3r7-h72x-cjcm , EUVD-2026-50416

cvss
4.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.3%
EPSS 0.3% chance of exploitation in 30 days, percentile 20%
public exploits
0
none known

Summary

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.

Patch / fix

  • npm undici 6.28.0, 7.29.0, 8.9.0
  • undici undici 6.28.0, 7.29.0, 8.9.0
  • node-undici Debian 14 8.9.0+dfsg+~cs3.2.0-1

debian advisories DEBIAN-CVE-2026-16729

  • nodejs24 hummingbird 1 24.18.1-0.1.hum1
  • nodejs24-bin hummingbird 1 24.18.1-0.1.hum1
  • nodejs24-npm hummingbird 1 11.16.0-1.24.18.1.0.1.hum1
  • nodejs24-libs hummingbird 1 24.18.1-0.1.hum1
  • nodejs24-npm-bin hummingbird 1 24.18.1-0.1.hum1
  • nodejs24-full-i18n hummingbird 1 24.18.1-0.1.hum1
  • nodejs26 hummingbird 1 26.5.1-1.5.hum1
  • nodejs26-bin hummingbird 1 26.5.1-1.5.hum1

red hat advisories RHSA-2026:48537RHSA-2026:48273

  • nodejs18 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 18.20.8-150400.9.39.1
  • nodejs20 SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE High Performance Computing 15 SP5-LTSS +1 more 20.20.2-150500.11.30.1
  • nodejs18 SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 18.20.8-8.44.1
  • nodejs20 SLES for SAP 15 SP6, SLES 15 SP6-LTSS 20.20.2-150600.3.21.1

suse advisories SUSE-SU-2026:4261-1SUSE-SU-2026:4248-1SUSE-SU-2026:3930-1SUSE-SU-2026:3929-1

  • nodejs Azure Linux 3.0 24.22.0-1

azure linux advisories AZL-94443

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-16729 updated cvss 4.8

undici: Undici: Cookie attribute injection allows bypassing security protections

  • Red Hat Hardened Images nodejs25 25.9.0-1.5.hum1
    affected: no fix planned “Will not fix”
  • Red Hat Hardened Images nodejs26 26.5.1-1.5.hum1, nodejs24 24.18.1-0.1.hum1, nodejs26-bin 26.5.1-1.5.hum1, nodejs24-bin 24.18.1-0.1.hum1, nodejs26-libs 26.5.1-1.5.hum1, nodejs24-libs 24.18.1-0.1.hum1, +6 more
    fixed: vendor fix RHSA-2026:48537
  • Red Hat Hardened Images rust 1.97.1-2.hum1, jaeger 2.20.0-0.6.hum1, grafana12.4 12.4.6-0.2.hum1, prometheus3.13 3.13.1-0.4.hum1
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
3 mo ago

Exploit prediction

0.28% chance of exploitation in the next 30 days, higher than 20% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
GitHub 3.1 4.8 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Affected packages

ecosystem package affected fixed in
npm undici
<6.28.0
>=7.0.0, <7.29.0
>=8.0.0, <8.9.0
6.28.0
7.29.0
8.9.0

Affected products

  • undici undici

Classification

Weakness
  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.