GHSA-qrxm-fqhp-jwvm: High severity npm/undici vulnerability

Published Oct 27, 2026
·
Updated

Impact

undici crashes the client process 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 ERRTLSCERTALTNAMEINVALID. undici's established socket error handler asserted that this error code could never occur, so the peer-controlled error became an uncaught AssertionError that terminates the Node.js process. Both the HTTP/1.1 and HTTP/2 paths are affected.

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. Only TLS 1.2 is affected, because TLS 1.3 does not support renegotiation. Exploitation does not require a CA compromise: the attacker controls the endpoint and can present two ordinary valid certificates, the first matching the requested URL and the second intentionally not matching it.

Patches

Upgrade to undici 6.29.1, 7.30.1, or 8.12.2.

Workarounds

Restrict outbound connections to TLS 1.3, for example by setting connect: { minVersion: 'TLSv1.3', maxVersion: 'TLSv1.3' } on the client or agent, so that renegotiation cannot occur, when the target endpoints support TLS 1.3.

Affected Software

3 affected componentsFixes available
npm/undici>=8.0.0<8.12.2
8.12.2
npm/undici>=7.0.0<7.30.1
7.30.1
npm/undici>=4.2.1<6.29.1
6.29.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 8.12.2
  2. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 7.30.1
  3. Upgrade

    Upgrade npm/undici to a version that resolves this vulnerability.

    Fixed in 6.29.1
  4. Upgrade

    Upgrade undici to a version that resolves this vulnerability.

    Fixed in 6.29.1
  5. Upgrade

    Upgrade undici to a version that resolves this vulnerability.

    Fixed in 7.30.1
  6. Upgrade

    Upgrade undici to a version that resolves this vulnerability.

    Fixed in 8.12.2
  7. Configuration

    Restrict outbound connections to TLS 1.3 by setting connect: { minVersion: 'TLSv1.3', maxVersion: 'TLSv1.3' } when the target endpoints support TLS 1.3.

    undici client or agent connect.minVersion and connect.maxVersion = TLSv1.3

Event History

Oct 27, 2026
Advisory Published
via GitHub·07:02 PM
Data Sourced
via GitHub·07:02 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which applications are exposed to this issue?

Applications that make HTTPS requests through undici or Node.js global fetch() are exposed when they connect to a malicious or compromised endpoint that can perform TLS 1.2 renegotiation. Both undici HTTP/1.1 and HTTP/2 request paths are affected.

2

What does an attacker need to exploit this?

The attacker needs control of the HTTPS endpoint reached by the client. They can use an ordinary valid certificate matching the requested host for the initial connection, then renegotiate with a different CA-trusted certificate whose hostname does not match; no CA compromise is required.

3

Is TLS 1.3 affected?

No. The issue is limited to TLS 1.2 because TLS 1.3 does not support renegotiation.

4

What is the remediation?

Upgrade undici to version 6.29.1, 7.30.1, or 8.12.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203