---
title: "GHSA-qrxm-fqhp-jwvm: undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation"
description: "High severity. undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation. Affects undici; fixed in 8.12.2."
url: https://inlinr.com/advisories/GHSA-qrxm-fqhp-jwvm
lang: en
---

[Packages](https://inlinr.com/packages) / [undici](https://inlinr.com/packages/undici) / [Security](https://inlinr.com/packages/undici/security)

High Vulnerability GHSA-qrxm-fqhp-jwvm CVE-2026-87018 Published 27 Oct 2026

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

Your version 

Affected releases · [undici](https://inlinr.com/packages/undici)

- 8.x 8.0.0 – 8.12.1 Fixed in 8.12.2
- 7.x 7.0.0 – 7.30.0 Fixed in 7.30.1
- 6.x 6.0.0 – 6.29.0 Fixed in 6.29.1
- 5.x and older 4.2.1 – 5.29.0 No fix, no longer updated

On 8.x, the newest line:

```
npm install undici@8.12.2
```

Every release on a timeline

8.x 

1. Affected

8.0.0 – 8.12.1  
22 releases
2. Fixed

8.12.2 – 8.13.1  
5 releases

7.x 

1. Affected

7.0.0 – 7.30.0  
50 releases
2. Fixed

7.30.1 – 7.30.2  
2 releases

6.x 

1. Affected

6.0.0 – 6.29.0  
56 releases
2. Fixed

6.29.1  
1 release

5.x 

1. Affected

5.0.0 – 5.29.0  
59 releases

4.x 

1. Not affected

4.0.0 – 4.2.0  
4 releases
2. Affected

4.2.1 – 4.16.0  
45 releases

288 stable releases of undici, oldest to newest, one row per major.

## What happens

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 `ERR_TLS_CERT_ALTNAME_INVALID`. 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.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: high

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

## References

- [Reference](https://github.com/nodejs/undici/security/advisories/GHSA-qrxm-fqhp-jwvm "https://github.com/nodejs/undici/security/advisories/GHSA-qrxm-fqhp-jwvm")  
github.com/nodejs/undici/security/advisories/GH…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-87018 "https://nvd.nist.gov/vuln/detail/CVE-2026-87018")  
nvd.nist.gov/vuln/detail/CVE-2026-87018
- [Fix commit](https://github.com/nodejs/undici/commit/12cfd96c3f430897656e3edc1c5e02be8c1cd309 "https://github.com/nodejs/undici/commit/12cfd96c3f430897656e3edc1c5e02be8c1cd309")  
12cfd96
- [Fix commit](https://github.com/nodejs/undici/commit/b40fbfc0651703cf9fa9f6ced68b679f28d8bb28 "https://github.com/nodejs/undici/commit/b40fbfc0651703cf9fa9f6ced68b679f28d8bb28")  
b40fbfc
- [Fix commit](https://github.com/nodejs/undici/commit/e257e9f8fb42eedd50727b9cf65e548c8925e4a8 "https://github.com/nodejs/undici/commit/e257e9f8fb42eedd50727b9cf65e548c8925e4a8")  
e257e9f
- [Reference](https://cna.openjsf.org/security-advisories.html "https://cna.openjsf.org/security-advisories.html")  
cna.openjsf.org/security-advisories.html
- [Package](https://github.com/nodejs/undici "https://github.com/nodejs/undici")  
github.com/nodejs/undici
- [Reference](https://github.com/nodejs/undici/releases/tag/v6.29.1 "https://github.com/nodejs/undici/releases/tag/v6.29.1")  
github.com/nodejs/undici/releases/tag/v6.29.1
- [Reference](https://github.com/nodejs/undici/releases/tag/v7.30.1 "https://github.com/nodejs/undici/releases/tag/v7.30.1")  
github.com/nodejs/undici/releases/tag/v7.30.1
- [Reference](https://github.com/nodejs/undici/releases/tag/v8.12.2 "https://github.com/nodejs/undici/releases/tag/v8.12.2")  
github.com/nodejs/undici/releases/tag/v8.12.2

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
