Intel

AIKIDO-2026-393834

undici is vulnerable to Denial of Service

CVE-2026-87018Published Oct 19, 2026
October 19, 2026

75

CVE Score

High

Denial of Service

Are you affected? Scan for Free

TL;DR

A malicious or compromised HTTPS server can crash the Node.js client process by performing a TLS 1.2 renegotiation after the connection is established and presenting a different, CA-trusted certificate whose hostname does not match the requested host. Node.js destroys the socket with ERR_TLS_CERT_ALTNAME_INVALID, but undici's established-socket error handler asserted that this error could never occur, turning the peer-controlled error into an uncaught AssertionError that terminates the process. Both the HTTP/1.1 and HTTP/2 paths, as well as the global fetch(), are affected. The fix handles post-connect certificate errors without terminating the process.

How do I fix this?

Upgrade the undici library to the patch version. As a workaround, restrict outbound connections to TLS 1.3 by setting connect: { minVersion: 'TLSv1.3', maxVersion: 'TLSv1.3' } on the client or agent, if the target endpoints support it.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you make requests (via undici or the global fetch()) to HTTPS endpoints that you do not fully trust and that negotiate TLS 1.2. TLS 1.3 connections are not affected because they do not support renegotiation.

Package

Versions

4.2.1 - 6.29.0

Fixed in 6.29.1

7.0.0 - 7.30.0

Fixed in 7.30.1

8.0.0 - 8.12.1

Fixed in 8.12.2

Background info

undici is vulnerable to Denial of Service in versions 4.2.1 - 6.29.0, 7.0.0 - 7.30.0 and 8.0.0 - 8.12.1.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea