CVE-2026-87018
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| undici | npm | 8.12.2, 7.30.1, 6.29.1 |
| nodejs22-full-i18n | Amazon Linux | 1:22.23.4-1.amzn2023.0.1 |
| nodejs22-devel | Amazon Linux | 1:22.23.4-1.amzn2023.0.1 |
| nodejs24 | Amazon Linux | 1:24.22.1-1.amzn2023.0.1 |
| nodejs24-full-i18n | Amazon Linux | 1:24.22.1-1.amzn2023.0.1 |
| nodejs22-npm | Amazon Linux | 1:10.9.9-1.22.23.4.1.amzn2023.0.1 |
| nodejs22-docs | Amazon Linux | 1:22.23.4-1.amzn2023.0.1 |
| nodejs22-libs | Amazon Linux | 1:22.23.4-1.amzn2023.0.1 |
| nodejs22 | Amazon Linux | 1:22.23.4-1.amzn2023.0.1 |
| node-gyp | Wolfi | 13.1.0-r1 |
| nodejs24-libs | Amazon Linux | 1:24.22.1-1.amzn2023.0.1 |
| v8-13.6-devel | Amazon Linux | 3: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
Affected products
| Vendor | Product | Versions |
|---|---|---|
| undici | undici | 4.2.1, 6.29.1, 7.0.0 |
| amazon:2023 | nodejs22-full-i18n | 0 |
| amazon:2023 | nodejs22-devel | 0 |
| amazon:2023 | nodejs24 | 0 |
| amazon:2023 | nodejs24-full-i18n | 0 |
| undici | undici | 7.0.0, 4.2.1, 8.12.2 |
| amazon:2023 | nodejs22-npm | 0 |
| amazon:2023 | nodejs22-docs | 0 |
| npm | undici | 7.0.0, 4.2.1, 8.0.0 |
| amazon:2023 | nodejs22-libs | 0 |
| amazon:2023 | nodejs22 | 0 |
| wolfi | node-gyp | 0 |
| amazon:2023 | nodejs24-libs | 0 |
| amazon:2023 | v8-13.6-devel | 0 |
| amazon:2023 | nodejs24-npm | 0 |
| amazon:2023 | nodejs24-docs | 0 |
| amazon:2023 | v8-12.4-devel | 0 |
| amazon:2023 | nodejs24-devel | 0 |
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
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-87018 advisory
- https://github.com/advisories/GHSA-qrxm-fqhp-jwvm advisory
- https://github.com/nodejs/undici/commit/12cfd96c3f430897656e3edc1c5e02be8c1cd309 patch
- https://github.com/nodejs/undici/commit/b40fbfc0651703cf9fa9f6ced68b679f28d8bb28 patch
- https://github.com/nodejs/undici/commit/e257e9f8fb42eedd50727b9cf65e548c8925e4a8 patch
- https://github.com/nodejs/undici/releases/tag/v6.29.1 url
- https://github.com/nodejs/undici/releases/tag/v7.30.1 url
- https://github.com/nodejs/undici/releases/tag/v8.12.2 url