VDB

CVE-2026-87018

CVE-2026-87018 PUBLISHED CVSS 7.5 HIGH

undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation

Reported by openjs · Published October 15, 2026

undici is fixed in 8.12.2, 7.30.1 and 6.29.1 (npm)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
undicinpm8.12.2, 7.30.1, 6.29.1
nodejs22-full-i18nAmazon Linux1:22.23.4-1.amzn2023.0.1
nodejs22-develAmazon Linux1:22.23.4-1.amzn2023.0.1
nodejs24Amazon Linux1:24.22.1-1.amzn2023.0.1
nodejs24-full-i18nAmazon Linux1:24.22.1-1.amzn2023.0.1
nodejs22-npmAmazon Linux1:10.9.9-1.22.23.4.1.amzn2023.0.1
nodejs22-docsAmazon Linux1:22.23.4-1.amzn2023.0.1
nodejs22-libsAmazon Linux1:22.23.4-1.amzn2023.0.1
nodejs22Amazon Linux1:22.23.4-1.amzn2023.0.1
node-gypWolfi13.1.0-r1
nodejs24-libsAmazon Linux1:24.22.1-1.amzn2023.0.1
v8-13.6-develAmazon Linux3:13.6.233.17-1.24.22.1.1.amzn2023.0.1

6 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
undiciundici4.2.1, 6.29.1, 7.0.0
amazon:2023nodejs22-full-i18n0
amazon:2023nodejs22-devel0
amazon:2023nodejs240
amazon:2023nodejs24-full-i18n0
undiciundici7.0.0, 4.2.1, 8.12.2
amazon:2023nodejs22-npm0
amazon:2023nodejs22-docs0
npmundici7.0.0, 4.2.1, 8.0.0
amazon:2023nodejs22-libs0
amazon:2023nodejs220
wolfinode-gyp0
amazon:2023nodejs24-libs0
amazon:2023v8-13.6-devel0
amazon:2023nodejs24-npm0
amazon:2023nodejs24-docs0
amazon:2023v8-12.4-devel0
amazon:2023nodejs24-devel0

Timeline

  • Oct 15, 2026 Coalition ESS Score
  • Oct 15, 2026 CVE Published
  • Oct 16, 2026 EPSS Score (4 in total, the first dated here)
  • Oct 27, 2026 CVE Updated
  • Oct 31, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-87018
vulnetix vdb fixes CVE-2026-87018

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-87018/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›