undici is vulnerable to Denial of Service
75
CVE Score
High
Denial of Service
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.
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.
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.
4.2.1 - 6.29.0
Fixed in 6.29.17.0.0 - 7.30.0
Fixed in 7.30.18.0.0 - 8.12.1
Fixed in 8.12.2undici 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.
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.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.