CVE-2026-87018
undici: undici: Denial of Service via TLS renegotiation with mismatched certificate
Overview
Description
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- 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
Weakness: CWE-248, CWE-617
Affected packages · 3
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| npm | undici | >=4.2.1, <6.29.1>=7.0.0, <7.30.1>=8.0.0, <8.12.2 | 6.29.17.30.18.12.2 |
| Seal npm | @seal-security/undici | >=4.16.0-sp1, <4.16.0-sp999>=6.21.1-sp1, <6.21.1-sp999>=6.21.2-sp1p1, <6.21.2-sp999>=6.21.3-sp1p1, <6.21.3-sp999>=6.23.0-sp1, <6.23.0-sp2+8 more | 4.16.0-sp9996.21.1-sp9996.21.2-sp9996.21.3-sp9996.23.0-sp2 |
| Seal npm | undici | >=4.16.0-sp0, <4.16.0-sp999>=6.21.1-sp0, <6.21.1-sp999>=6.21.2-sp0, <6.21.2-sp999>=6.21.3-sp0, <6.21.3-sp999>=6.23.0-sp0, <6.23.0-sp2+8 more | 4.16.0-sp9996.21.1-sp9996.21.2-sp9996.21.3-sp9996.23.0-sp2 |
Open a package to see all its vulnerabilities.
Operating systems · 110 fixes
Oracle Linux 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| 9 | npm | 1:11.19.0-1.24.21.0.1.0.1.module+el9.8.0+91109+154e6434 |
| 9 | nodejs +4 | 1:24.21.0-1.0.1.module+el9.8.0+91109+154e6434 |
| 9 | nodejs-packaging +1 | 2021.06-6.module+el9.8.0+91010+e0f4f255 |
| 9 | nodejs-nodemon | 3.1.14-6.module+el9.8.0+91109+154e6434 |
| 9 | v8-12-4-devel | 3:12.4.254.21-1.22.23.2.2.0.1.module+el9.8.0+91110+558b6b61 |
| 9 | v8-13-6-devel | 3:13.6.233.17-1.24.21.0.1.0.1.module+el9.8.0+91109+154e6434 |
Red Hat 8 releases · 8 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 7 | openshift4-ose-monitoring-plugin-rhel9 | affected | — |
| 8 | openshift4-ose-monitoring-plugin-rhel9 +3 | affected | — |
| 8 (nodejs:22) | nodejs-packaging +1 | 0:2021.06-6.module+el8.10.0+24710+c2e9b41f | RHSA-2026:98113 |
| 8 (nodejs:22) | nodejs-nodemon | 0:3.1.14-3.module+el8.10.0+25285+c731a801 | RHSA-2026:98113 |
| 8 (nodejs:22) | npm | 1:10.9.9-1.22.23.4.2.module+el8.10.0+25285+c731a801 | RHSA-2026:98113 |
| 8 (nodejs:22) | nodejs +4 | 1:22.23.4-2.module+el8.10.0+25285+c731a801 | RHSA-2026:98113 |
22 more rows
alma 6 releases · 9 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | nodejs-docs | 1:22.23.4-1.el10_2 |
| 10 | nodejs24-docs | 1:24.22.1-3.el10_2 |
| 10 | nodejs24-npm | 2:11.19.1-1.24.22.1.3.el10_2 |
| 8 (nodejs:22) | npm | 1:10.9.9-1.22.23.4.2.module_el8.10.0+4358+709b81be |
| 8 (nodejs:22) | nodejs +4 | 1:22.23.4-2.module_el8.10.0+4358+709b81be |
| 8 (nodejs:22) | nodejs-packaging +1 | 2021.06-6.module_el8.10.0+4158+e796f37f |
14 more rows
amazon linux 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | nodejs22-npm | 1:10.9.9-1.22.23.4.1.amzn2023.0.1 |
| 2023 | nodejs24-npm | 1:11.19.1-1.24.22.1.1.amzn2023.0.1 |
| 2023 | nodejs22 +7 | 1:22.23.4-1.amzn2023.0.1 |
| 2023 | nodejs24 +7 | 1:24.22.1-1.amzn2023.0.1 |
| 2023 | v8-12-4-devel | 3:12.4.254.21-1.22.23.4.1.amzn2023.0.1 |
| 2023 | v8-13-6-devel | 3:13.6.233.17-1.24.22.1.1.amzn2023.0.1 |
chainguard 1 release · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| supabase-storage-api | 1.84.23-r1 | |
| node-gyp | 13.1.0-r1 | |
| graalvm-25-2 | 25.2.4-r6 | |
| renovate | 44.198.3-r1 | |
| kibana-9-2 | 9.2.8-r30 | |
| kibana-9-3 | 9.3.8-r9 |
debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | node-undici | affected |
| 13 | node-undici | affected |
| 14 | node-undici | 8.12.2+dfsg+~cs3.2.3-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| node-undici | affected |
openSUSE 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | pi-coding-agent +1 | 1.5.0-1.1 | openSUSE-SU-2026:12421-1 |
rocky 3 releases · 12 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | nodejs-npm | 1:10.9.9-1.22.23.4.1.el10_2 |
| 10 | nodejs26-npm | 1:11.20.0-1.26.12.1.3.el10_3 |
| 10 | nodejs +4 | 1:22.23.4-1.el10_2 |
| 10 | nodejs24 +4 | 1:24.22.1-3.el10_2 |
| 10 | nodejs26 +4 | 1:26.12.1-3.el10_3 |
| 10 | nodejs24-npm | 2:11.19.1-1.24.22.1.3.el10_2 |
30 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-node-undici | affected |
wolfi 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| node-gyp | 13.1.0-r1 | |
| renovate | 44.198.3-r1 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2026:96234
- access.redhat.com https://access.redhat.com/security/cve/CVE-2026-87018
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2542700
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2542707
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2553656
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2553677
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2553678
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2559873
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2559875
- cna.openjsf.org https://cna.openjsf.org/security-advisories.html
Show all 31 references
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-102276
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-102278
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-105482
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-106069
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-109383
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-109869
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-87018
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2026:96234
- github.com https://github.com/nodejs/undici
- github.com https://github.com/nodejs/undici/commit/12cfd96c3f430897656e3edc1c5e02be8c1cd309
- github.com https://github.com/nodejs/undici/commit/b40fbfc0651703cf9fa9f6ced68b679f28d8bb28
- github.com https://github.com/nodejs/undici/commit/e257e9f8fb42eedd50727b9cf65e548c8925e4a8
- github.com https://github.com/nodejs/undici/releases/tag/v6.29.1
- github.com https://github.com/nodejs/undici/releases/tag/v7.30.1
- github.com https://github.com/nodejs/undici/releases/tag/v8.12.2
- github.com https://github.com/nodejs/undici/security/advisories/GHSA-qrxm-fqhp-jwvm
- linux.oracle.com https://linux.oracle.com/cve/CVE-2026-87018.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2026-96226.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2026-87018
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2026-87018
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.