CVE-2026-87018undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation
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.
What to do
Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, npm: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | node-undici | Fix pending | UBUNTU-CVE-2026-87018 | |
| Ubuntu 26.04 | node-undici | Under investigation | UBUNTU-CVE-2026-87018 | |
| Ubuntu 24.04 | node-undici | Under investigation | UBUNTU-CVE-2026-87018 | |
| Debian 14 | node-undici | Fixed | 8.12.2+dfsg+~cs3.2.3-1 | DEBIAN-CVE-2026-87018 |
| Debian 13 | node-undici | Fix pending | DEBIAN-CVE-2026-87018 | |
| Debian 12 | node-undici | Fix pending | DEBIAN-CVE-2026-87018 | |
| Red Hat Enterprise Linux 10 | grafana | Not affected | ||
| Red Hat Enterprise Linux 10 | grafana-selinux | Not affected | ||
| Red Hat Enterprise Linux 10 | nodejs | Fixed | 1:22.23.4-1.el10_2 | RHSA-2026:96094 |
| Red Hat Enterprise Linux 10 | nodejs-devel | Fixed | 1:22.23.4-1.el10_2 | RHSA-2026:96094 |
| Red Hat Enterprise Linux 10 | nodejs-docs | Fixed | 1:22.23.4-1.el10_2 | RHSA-2026:96094 |
| Red Hat Enterprise Linux 10 | nodejs-full-i18n | Fixed | 1:22.23.4-1.el10_2 | RHSA-2026:96094 |
| Red Hat Enterprise Linux 10 | nodejs-libs | Fixed | 1:22.23.4-1.el10_2 | RHSA-2026:96094 |
| Red Hat Enterprise Linux 10 | nodejs-npm | Fixed | 1:10.9.9-1.22.23.4.1.el10_2 | RHSA-2026:96094 |
| Red Hat Enterprise Linux 10 | nodejs22 | Fixed | 1:22.23.4-1.el10_2 | RHSA-2026:96094 |
| Red Hat Enterprise Linux 10 | nodejs24 | Fixed | 1:24.22.1-3.el10_2 | RHSA-2026:96088 |
| Red Hat Enterprise Linux 10 | nodejs24-devel | Fixed | 1:24.22.1-3.el10_2 | RHSA-2026:96088 |
| Red Hat Enterprise Linux 10 | nodejs24-docs | Fixed | 1:24.22.1-3.el10_2 | RHSA-2026:96088 |
| Red Hat Enterprise Linux 10 | nodejs24-full-i18n | Fixed | 1:24.22.1-3.el10_2 | RHSA-2026:96088 |
| Red Hat Enterprise Linux 10 | nodejs24-libs | Fixed | 1:24.22.1-3.el10_2 | RHSA-2026:96088 |
| Red Hat Enterprise Linux 10 | nodejs24-npm | Fixed | 2:11.19.1-1.24.22.1.3.el10_2 | RHSA-2026:96088 |
| Red Hat Enterprise Linux 10 | nodejs26 | Fixed | 1:26.12.1-3.el10_3 | RHSA-2026:98619 |
| Red Hat Enterprise Linux 10 | nodejs26-devel | Fixed | 1:26.12.1-3.el10_3 | RHSA-2026:98619 |
| Red Hat Enterprise Linux 10 | nodejs26-docs | Fixed | 1:26.12.1-3.el10_3 | RHSA-2026:98619 |
| Red Hat Enterprise Linux 10 | nodejs26-full-i18n | Fixed | 1:26.12.1-3.el10_3 | RHSA-2026:98619 |
| Red Hat Enterprise Linux 10 | nodejs26-libs | Fixed | 1:26.12.1-3.el10_3 | RHSA-2026:98619 |
| Red Hat Enterprise Linux 10 | nodejs26-npm | Fixed | 1:11.20.0-1.26.12.1.3.el10_3 | RHSA-2026:98619 |
| Red Hat Enterprise Linux 9 | nodejs | Fixed | 1:26.12.1-2.module+el9.9.0+25297+fc0af076 | RHSA-2026:96234 |
| Red Hat Enterprise Linux 9 | nodejs-devel | Fixed | 1:26.12.1-2.module+el9.9.0+25297+fc0af076 | RHSA-2026:96234 |
| Red Hat Enterprise Linux 9 | nodejs-docs | Fixed | 1:22.23.4-2.module+el9.8.0+25286+62e50b69 | RHSA-2026:98522 |
| Red Hat Enterprise Linux 9 | nodejs-full-i18n | Fixed | 1:24.22.1-5.module+el9.8.0+25292+33251f3b | RHSA-2026:98522 |
| Red Hat Enterprise Linux 9 | nodejs-libs | Fixed | 1:24.22.1-5.module+el9.8.0+25292+33251f3b | RHSA-2026:96234 |
| Red Hat Enterprise Linux 9 | nodejs-nodemon | Fixed | 0:3.1.14-2.module+el9.9.0+25283+460aabd3 | RHSA-2026:96226 |
| Red Hat Enterprise Linux 9 | nodejs-packaging | Fixed | 0:2021.06-6.module+el9.9.0+24923+ac50c00f | RHSA-2026:96234 |
| Red Hat Enterprise Linux 9 | nodejs-packaging-bundler | Fixed | 0:2021.06-6.module+el9.8.0+24708+e71d2e1d | RHSA-2026:98522 |
| Red Hat Enterprise Linux 9 | npm | Fixed | 1:11.19.1-1.24.22.1.5.module+el9.8.0+25292+33251f3b | RHSA-2026:96234 |
| Red Hat Enterprise Linux 9 | v8-12.4-devel | Fixed | 3:12.4.254.21-1.22.23.4.2.module+el9.8.0+25286+62e50b69 | RHSA-2026:96234 |
| Red Hat Enterprise Linux 9 | v8-13.6-devel | Fixed | 3:13.6.233.17-1.24.22.1.5.module+el9.8.0+25292+33251f3b | RHSA-2026:96226 |
| Red Hat Enterprise Linux 9 | v8-14.6-devel | Fixed | 3:14.6.202.34-1.26.12.1.2.module+el9.9.0+25297+fc0af076 | RHSA-2026:98522 |
| Red Hat Enterprise Linux 8 | nodejs | Fixed Affected | 1:24.22.1-2.module+el8.10.0+25293+7b33a103 | RHSA-2026:98113 |
| Red Hat Enterprise Linux 8 | nodejs-devel | Fixed Affected | 1:22.23.4-2.module+el8.10.0+25285+c731a801 | RHSA-2026:98102 |
| Red Hat Enterprise Linux 8 | nodejs-docs | Fixed Affected | 1:22.23.4-2.module+el8.10.0+25285+c731a801 | RHSA-2026:98102 |
| Red Hat Enterprise Linux 8 | nodejs-full-i18n | Fixed Affected | 1:22.23.4-2.module+el8.10.0+25285+c731a801 | RHSA-2026:98102 |
| Red Hat Enterprise Linux 8 | nodejs-libs | Fixed Affected | 1:24.22.1-2.module+el8.10.0+25293+7b33a103 | RHSA-2026:98113 |
| Red Hat Enterprise Linux 8 | nodejs-nodemon | Fixed Affected | 0:3.1.14-3.module+el8.10.0+25285+c731a801 | RHSA-2026:98102 |
| Red Hat Enterprise Linux 8 | nodejs-packaging | Fixed Affected | 0:2021.06-6.module+el8.10.0+24710+c2e9b41f | RHSA-2026:98102 |
| Red Hat Enterprise Linux 8 | nodejs-packaging-bundler | Fixed Affected | 0:2021.06-6.module+el8.10.0+24711+b610b202 | RHSA-2026:98113 |
| Red Hat Enterprise Linux 8 | npm | Fixed Affected | 1:11.19.1-1.24.22.1.2.module+el8.10.0+25293+7b33a103 | RHSA-2026:98113 |
| Red Hat Enterprise Linux 8 | v8-12.4-devel | Fixed Affected | 3:12.4.254.21-1.22.23.4.2.module+el8.10.0+25285+c731a801 | RHSA-2026:98113 |
| Red Hat Enterprise Linux 8 | v8-13.6-devel | Fixed Affected | 3:13.6.233.17-1.24.22.1.2.module+el8.10.0+25293+7b33a103 | RHSA-2026:98102 |
| AlmaLinux 10 | nodejs-docs | Fixed | 1:22.23.4-1.el10_2 | ALSA-2026:96094 |
| AlmaLinux 10 | nodejs24-docs | Fixed | 1:24.22.1-3.el10_2 | ALSA-2026:96088 |
| AlmaLinux 10 | nodejs24-npm | Fixed | 2:11.19.1-1.24.22.1.3.el10_2 | ALSA-2026:96088 |
| AlmaLinux 10 | nodejs26 | Fixed | 1:26.12.1-3.el10_3 | ALSA-2026:98619 |
| AlmaLinux 10 | nodejs26-devel | Fixed | 1:26.12.1-3.el10_3 | ALSA-2026:98619 |
| AlmaLinux 10 | nodejs26-docs | Fixed | 1:26.12.1-3.el10_3 | ALSA-2026:98619 |
| AlmaLinux 10 | nodejs26-full-i18n | Fixed | 1:26.12.1-3.el10_3 | ALSA-2026:98619 |
| AlmaLinux 10 | nodejs26-libs | Fixed | 1:26.12.1-3.el10_3 | ALSA-2026:98619 |
| AlmaLinux 10 | nodejs26-npm | Fixed | 1:11.20.0-1.26.12.1.3.el10_3 | ALSA-2026:98619 |
| AlmaLinux 9 | nodejs | Fixed | 1:26.12.1-2.module_el9.9.0+350+dfbd8996 | ALSA-2026:98522 |
| AlmaLinux 9 | nodejs-devel | Fixed | 1:26.12.1-2.module_el9.9.0+350+dfbd8996 | ALSA-2026:98522 |
| AlmaLinux 9 | nodejs-docs | Fixed | 1:26.12.1-2.module_el9.9.0+350+dfbd8996 | ALSA-2026:98522 |
| AlmaLinux 9 | nodejs-full-i18n | Fixed | 1:26.12.1-2.module_el9.9.0+350+dfbd8996 | ALSA-2026:98522 |
| AlmaLinux 9 | nodejs-libs | Fixed | 1:26.12.1-2.module_el9.9.0+350+dfbd8996 | ALSA-2026:98522 |
| AlmaLinux 9 | nodejs-nodemon | Fixed | 3.1.14-2.module_el9.9.0+304+ff00f651 | ALSA-2026:96226 |
| AlmaLinux 9 | nodejs-packaging | Fixed | 2021.06-6.module_el9.7.0+209+ecf6523e | ALSA-2026:96234 |
| AlmaLinux 9 | nodejs-packaging-bundler | Fixed | 2021.06-6.module_el9.9.0+304+ff00f651 | ALSA-2026:96234 |
| AlmaLinux 9 | npm | Fixed | 1:11.20.0-1.26.12.1.2.module_el9.9.0+350+dfbd8996 | ALSA-2026:98522 |
| AlmaLinux 8 | nodejs | Fixed | 1:22.23.4-2.module_el8.10.0+4358+709b81be | ALSA-2026:98102 |
| AlmaLinux 8 | nodejs-devel | Fixed | 1:24.22.1-2.module_el8.10.0+4355+47fd9055 | ALSA-2026:98113 |
| AlmaLinux 8 | nodejs-docs | Fixed | 1:24.22.1-2.module_el8.10.0+4355+47fd9055 | ALSA-2026:98113 |
| AlmaLinux 8 | nodejs-full-i18n | Fixed | 1:22.23.4-2.module_el8.10.0+4358+709b81be | ALSA-2026:98102 |
| AlmaLinux 8 | nodejs-libs | Fixed | 1:22.23.4-2.module_el8.10.0+4358+709b81be | ALSA-2026:98102 |
| AlmaLinux 8 | nodejs-nodemon | Fixed | 3.1.14-2.module_el8.10.0+4250+09238ed4 | ALSA-2026:98113 |
| AlmaLinux 8 | nodejs-packaging | Fixed | 2021.06-6.module_el8.10.0+4158+e796f37f | ALSA-2026:98102 |
| AlmaLinux 8 | nodejs-packaging-bundler | Fixed | 2021.06-6.module_el8.10.0+4086+70facd4a | ALSA-2026:98113 |
| AlmaLinux 8 | npm | Fixed | 1:10.9.9-1.22.23.4.2.module_el8.10.0+4358+709b81be | ALSA-2026:98102 |
| AlmaLinux 8 | v8-12.4-devel | Fixed | 3:12.4.254.21-1.22.23.4.2.module_el8.10.0+4358+709b81be | ALSA-2026:98113 |
| AlmaLinux 8 | v8-13.6-devel | Fixed | 3:13.6.233.17-1.24.22.1.2.module_el8.10.0+4355+47fd9055 | ALSA-2026:98102 |
| Rocky Linux 10 | nodejs22 | Fixed | 1:22.23.4-1.el10_2 | RLSA-2026:96094 |
| Rocky Linux 10 | nodejs24 | Fixed | 1:24.22.1-3.el10_2 | RLSA-2026:96088 |
| Rocky Linux 10 | nodejs26 | Fixed | 1:26.12.1-3.el10_3 | RLSA-2026:98619 |
| Rocky Linux 10 | nodejs26-devel | Fixed | 1:26.12.1-3.el10_3 | RLSA-2026:98619 |
| Rocky Linux 10 | nodejs26-docs | Fixed | 1:26.12.1-3.el10_3 | RLSA-2026:98619 |
| Rocky Linux 10 | nodejs26-full-i18n | Fixed | 1:26.12.1-3.el10_3 | RLSA-2026:98619 |
| Rocky Linux 10 | nodejs26-libs | Fixed | 1:26.12.1-3.el10_3 | RLSA-2026:98619 |
| Rocky Linux 10 | nodejs26-npm | Fixed | 1:11.20.0-1.26.12.1.3.el10_3 | RLSA-2026:98619 |
| Rocky Linux 9 | nodejs-nodemon | Fixed | 0:3.1.14-3.module+el9.8.0+40281+14cc6568 | RLSA-2026:98522 |
| Rocky Linux 9 | nodejs-packaging | Fixed | 0:2021.06-6.module+el9.7.0+40153+4d595597 | RLSA-2026:98522 |
| Rocky Linux 8 | nodejs-nodemon | Fixed | 0:3.1.14-2.module+el8.10.0+40277+b1b3f89e | RLSA-2026:98102 |
| Rocky Linux 8 | nodejs-packaging | Fixed | 0:2021.06-6.module+el8.10.0+40171+8fa9c325 | RLSA-2026:98113 |
| npm library | undici | Fixed | 8.12.2 | GHSA-qrxm-fqhp-jwvm |
What the vendor says
As published in the CVE record by openjs, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- undici: affected: 4.2.1 to before 6.29.1, 6.29.1 not affected, 7.0.0 to before 7.30.1, 7.30.1 not affected, 8.0.0 to before 8.12.2, 8.12.2 not affected; fixed in
6.29.1,7.30.1,8.12.2
References
- https://github.com/nodejs/undici/security/advisories/GHSA-qrxm-fqhp-jwvm
- https://cna.openjsf.org/security-advisories.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.