CVE catalog

CVE-2026-87018

node-undici: CVE-2026-87018

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.19% · Oct 25, 2026

undici is an HTTP client library for Node.js. In versions 4.2.1 through 6.29.0, 7.0.0 through 7.30.0, and 8.0.0 through 8.12.1, the client process crashes when a TLS 1.2 server renegotiates after the connection is established and presents a different, CA-trusted certificate whose hostname does not match the requested host. Node.js re-runs hostname verification on the renegotiated handshake and destroys the socket with a certificate-altname error, but undici's established-socket error handler asserted that this error code could never occur, so the peer-controlled error became an uncaught assertion that terminates the Node.js process, affecting both the HTTP/1.1 and HTTP/2 paths. A malicious or compromised HTTPS endpoint reached through undici or the global fetch() can crash the client with a single server-initiated renegotiation, taking down all in-flight requests and background work in the process, and exploitation needs no CA compromise because the attacker controls the endpoint and can present two ordinary valid certificates. Only TLS 1.2 is affected, since TLS 1.3 does not support renegotiation. The issue is fixed in undici 6.29.1, 7.30.1, and 8.12.2, and users should upgrade to one of those versions or later. As a workaround, restrict outbound connections to TLS 1.3 so renegotiation cannot occur, when the target endpoints support it.

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-1vulnerable
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
CpeundiciNot reported8.12.2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-undicisourcesid8.12.2+dfsg+~cs3.2.3-1not yet assignedNot reportedNot reported
Debiannode-undicisourceforky(unfixed)not yet assignedNot reportedNot reported
Debiannode-undicisourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiannode-undicisourcebookworm(unfixed)not yet assignedNot reportedNot reported
CpeundicicpeNot reported8.12.2Not reportedNVD-CVE-2026-87018Not reported

Notes

[trixie] 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

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

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

      Affected

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

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

      Affected

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

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

      Affected

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

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

      Affected

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

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

      Affected

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

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

      Affected

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

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

      Affected

      dsa · node-undici · debian · bookworm; dsa · 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

      dsa · node-undici · debian · 13

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

      Affected

      dsa · 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

      dsa · node-undici · debian · 13

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

      Affected

      dsa · 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

      dsa · node-undici · debian · 13

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

      Affected

      dsa · node-undici · debian · 13

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

      Affected

      dsa · node-undici · debian · 13

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

      Affected

      dsa · node-undici · debian · 13

Observed:

References