CVE catalog

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 sem

[CVE catalog]

Severity
Medium · CVSS 4.8CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.28% · Oct 25, 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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-undicisid8.12.2+dfsg+~cs3.2.3-2fixed
Debiannode-undiciforky8.10.2+dfsg+~cs3.2.2-1fixed
Debiannode-undicitrixie7.3.0+dfsg1+~cs24.12.11-1vulnerable
Debiannode-undicibookworm5.15.0+dfsg1+~cs20.10.9.3-1+deb12u4vulnerable
Debiannode-undicibookworm-security5.15.0+dfsg1+~cs20.10.9.3-1+deb12u3vulnerable
NpmundiciNot reported8.9.0fixed
NpmundiciNot reported7.29.0fixed
NpmundiciNot reported8.9.0fixed
NpmundiciNot reported6.28.0fixed
NpmundiciNot reported7.29.0fixed
NpmundiciNot reported8.9.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-undicisourcesid8.9.0+dfsg+~cs3.2.0-1not yet assignedNot reported[1143063]
Debiannode-undicisourceforky8.9.0+dfsg+~cs3.2.0-1not yet assignedNot reported[1143063]
Debiannode-undicisourcetrixie(unfixed)not yet assignedNot reported[1143063]
Debiannode-undicisourcebookworm(unfixed)not yet assignedNot reported[1143063]
NpmundicinpmNot reported8.9.0Not reportedGHSA-V3R7-H72X-CJCMNot reported
NpmundicinpmNot reported7.29.0Not reportedNot reportedNot reported
NpmundicinpmNot reported8.9.0Not reportedNot reportedNot reported
NpmundicinpmNot reported6.28.0Not reportedNot reportedNot reported
NpmundicinpmNot reported7.29.0Not reportedNot reportedNot reported
NpmundicinpmNot reported8.9.0Not reportedNot reportedNot reported

[Debian bug #1143063]

Notes

[trixie] node-undici: Minor issue [bookworm] node-undici: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [node-llhttp]Affected

    Source package: [node-undici]

    Details (4)
    • 8.1.0~5.15.0+dfsg1+~cs20.10.9.3-1+deb12u4 · all · bookworm

      Affected

      nvd · node-undici · debian · bookworm; nvd · node-undici · debian · 12

    • 8.1.0~5.15.0+dfsg1+~cs20.10.9.3-1+deb12u4 · all · bookworm

      Affected

      nvd · node-undici · debian · bookworm; nvd · node-undici · debian · 12

    • 8.1.0~5.15.0+dfsg1+~cs20.10.9.3-1+deb12u3 · all · bookworm-security

      Affected

      nvd · node-undici · debian · bookworm; nvd · node-undici · debian · 12

    • 8.1.0~5.15.0+dfsg1+~cs20.10.9.3-1+deb12u3 · all · bookworm-security

      Affected

      nvd · node-undici · debian · bookworm; nvd · node-undici · debian · 12

  • [node-undici]Affected
    Details (4)
    • 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u4 · all · bookworm

      Affected

      nvd · node-undici · debian · bookworm; nvd · node-undici · debian · 12

    • 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u4 · all · bookworm

      Affected

      nvd · node-undici · debian · bookworm; nvd · node-undici · debian · 12

    • 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u3 · all · bookworm-security

      Affected

      nvd · node-undici · debian · bookworm; nvd · node-undici · debian · 12

    • 5.15.0+dfsg1+~cs20.10.9.3-1+deb12u3 · all · bookworm-security

      Affected

      nvd · node-undici · debian · bookworm; nvd · node-undici · debian · 12

[Debian 13 (Trixie)]

  • [libllhttp9.2]Affected

    Source package: [node-undici]

    Details (2)
    • 9.2.1~7.3.0+dfsg1+~cs24.12.11-1 · amd64 · trixie

      Affected

      nvd · node-undici · debian · 13

    • 9.2.1~7.3.0+dfsg1+~cs24.12.11-1 · arm64 · trixie

      Affected

      nvd · node-undici · debian · 13

  • [libllhttp-dev]Affected

    Source package: [node-undici]

    Details (2)
    • 9.2.1~7.3.0+dfsg1+~cs24.12.11-1 · amd64 · trixie

      Affected

      nvd · node-undici · debian · 13

    • 9.2.1~7.3.0+dfsg1+~cs24.12.11-1 · arm64 · trixie

      Affected

      nvd · node-undici · debian · 13

  • [node-llhttp]Affected

    Source package: [node-undici]

    Details (2)
    • 9.2.1~7.3.0+dfsg1+~cs24.12.11-1 · all · trixie

      Affected

      nvd · node-undici · debian · 13

    • 9.2.1~7.3.0+dfsg1+~cs24.12.11-1 · all · trixie

      Affected

      nvd · node-undici · debian · 13

  • [node-undici]Affected
    Details (2)
    • 7.3.0+dfsg1+~cs24.12.11-1 · all · trixie

      Affected

      nvd · node-undici · debian · 13

    • 7.3.0+dfsg1+~cs24.12.11-1 · all · trixie

      Affected

      nvd · node-undici · debian · 13

Observed:

References