CVEfocus › CVE database › CVE-2026-87018

CVE-2026-87018undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation

CVSS 7.5 HighEPSS 0.3% (higher than 17% of CVEs)Published 2026-10-15Updated 2026-10-16Assigner: openjs

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.

CWE-248CWE-617

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

85Fixed
3Fix pending
2Under investigation
2Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-undiciFix pendingUBUNTU-CVE-2026-87018
Ubuntu 26.04node-undiciUnder investigationUBUNTU-CVE-2026-87018
Ubuntu 24.04node-undiciUnder investigationUBUNTU-CVE-2026-87018
Debian 14node-undiciFixed8.12.2+dfsg+~cs3.2.3-1DEBIAN-CVE-2026-87018
Debian 13node-undiciFix pendingDEBIAN-CVE-2026-87018
Debian 12node-undiciFix pendingDEBIAN-CVE-2026-87018
Red Hat Enterprise Linux 10grafanaNot affected
Red Hat Enterprise Linux 10grafana-selinuxNot affected
Red Hat Enterprise Linux 10nodejsFixed1:22.23.4-1.el10_2RHSA-2026:96094
Red Hat Enterprise Linux 10nodejs-develFixed1:22.23.4-1.el10_2RHSA-2026:96094
Red Hat Enterprise Linux 10nodejs-docsFixed1:22.23.4-1.el10_2RHSA-2026:96094
Red Hat Enterprise Linux 10nodejs-full-i18nFixed1:22.23.4-1.el10_2RHSA-2026:96094
Red Hat Enterprise Linux 10nodejs-libsFixed1:22.23.4-1.el10_2RHSA-2026:96094
Red Hat Enterprise Linux 10nodejs-npmFixed1:10.9.9-1.22.23.4.1.el10_2RHSA-2026:96094
Red Hat Enterprise Linux 10nodejs22Fixed1:22.23.4-1.el10_2RHSA-2026:96094
Red Hat Enterprise Linux 10nodejs24Fixed1:24.22.1-3.el10_2RHSA-2026:96088
Red Hat Enterprise Linux 10nodejs24-develFixed1:24.22.1-3.el10_2RHSA-2026:96088
Red Hat Enterprise Linux 10nodejs24-docsFixed1:24.22.1-3.el10_2RHSA-2026:96088
Red Hat Enterprise Linux 10nodejs24-full-i18nFixed1:24.22.1-3.el10_2RHSA-2026:96088
Red Hat Enterprise Linux 10nodejs24-libsFixed1:24.22.1-3.el10_2RHSA-2026:96088
Red Hat Enterprise Linux 10nodejs24-npmFixed2:11.19.1-1.24.22.1.3.el10_2RHSA-2026:96088
Red Hat Enterprise Linux 10nodejs26Fixed1:26.12.1-3.el10_3RHSA-2026:98619
Red Hat Enterprise Linux 10nodejs26-develFixed1:26.12.1-3.el10_3RHSA-2026:98619
Red Hat Enterprise Linux 10nodejs26-docsFixed1:26.12.1-3.el10_3RHSA-2026:98619
Red Hat Enterprise Linux 10nodejs26-full-i18nFixed1:26.12.1-3.el10_3RHSA-2026:98619
Red Hat Enterprise Linux 10nodejs26-libsFixed1:26.12.1-3.el10_3RHSA-2026:98619
Red Hat Enterprise Linux 10nodejs26-npmFixed1:11.20.0-1.26.12.1.3.el10_3RHSA-2026:98619
Red Hat Enterprise Linux 9nodejsFixed1:26.12.1-2.module+el9.9.0+25297+fc0af076RHSA-2026:96234
Red Hat Enterprise Linux 9nodejs-develFixed1:26.12.1-2.module+el9.9.0+25297+fc0af076RHSA-2026:96234
Red Hat Enterprise Linux 9nodejs-docsFixed1:22.23.4-2.module+el9.8.0+25286+62e50b69RHSA-2026:98522
Red Hat Enterprise Linux 9nodejs-full-i18nFixed1:24.22.1-5.module+el9.8.0+25292+33251f3bRHSA-2026:98522
Red Hat Enterprise Linux 9nodejs-libsFixed1:24.22.1-5.module+el9.8.0+25292+33251f3bRHSA-2026:96234
Red Hat Enterprise Linux 9nodejs-nodemonFixed0:3.1.14-2.module+el9.9.0+25283+460aabd3RHSA-2026:96226
Red Hat Enterprise Linux 9nodejs-packagingFixed0:2021.06-6.module+el9.9.0+24923+ac50c00fRHSA-2026:96234
Red Hat Enterprise Linux 9nodejs-packaging-bundlerFixed0:2021.06-6.module+el9.8.0+24708+e71d2e1dRHSA-2026:98522
Red Hat Enterprise Linux 9npmFixed1:11.19.1-1.24.22.1.5.module+el9.8.0+25292+33251f3bRHSA-2026:96234
Red Hat Enterprise Linux 9v8-12.4-develFixed3:12.4.254.21-1.22.23.4.2.module+el9.8.0+25286+62e50b69RHSA-2026:96234
Red Hat Enterprise Linux 9v8-13.6-develFixed3:13.6.233.17-1.24.22.1.5.module+el9.8.0+25292+33251f3bRHSA-2026:96226
Red Hat Enterprise Linux 9v8-14.6-develFixed3:14.6.202.34-1.26.12.1.2.module+el9.9.0+25297+fc0af076RHSA-2026:98522
Red Hat Enterprise Linux 8nodejsFixed
Affected
1:24.22.1-2.module+el8.10.0+25293+7b33a103RHSA-2026:98113
Red Hat Enterprise Linux 8nodejs-develFixed
Affected
1:22.23.4-2.module+el8.10.0+25285+c731a801RHSA-2026:98102
Red Hat Enterprise Linux 8nodejs-docsFixed
Affected
1:22.23.4-2.module+el8.10.0+25285+c731a801RHSA-2026:98102
Red Hat Enterprise Linux 8nodejs-full-i18nFixed
Affected
1:22.23.4-2.module+el8.10.0+25285+c731a801RHSA-2026:98102
Red Hat Enterprise Linux 8nodejs-libsFixed
Affected
1:24.22.1-2.module+el8.10.0+25293+7b33a103RHSA-2026:98113
Red Hat Enterprise Linux 8nodejs-nodemonFixed
Affected
0:3.1.14-3.module+el8.10.0+25285+c731a801RHSA-2026:98102
Red Hat Enterprise Linux 8nodejs-packagingFixed
Affected
0:2021.06-6.module+el8.10.0+24710+c2e9b41fRHSA-2026:98102
Red Hat Enterprise Linux 8nodejs-packaging-bundlerFixed
Affected
0:2021.06-6.module+el8.10.0+24711+b610b202RHSA-2026:98113
Red Hat Enterprise Linux 8npmFixed
Affected
1:11.19.1-1.24.22.1.2.module+el8.10.0+25293+7b33a103RHSA-2026:98113
Red Hat Enterprise Linux 8v8-12.4-develFixed
Affected
3:12.4.254.21-1.22.23.4.2.module+el8.10.0+25285+c731a801RHSA-2026:98113
Red Hat Enterprise Linux 8v8-13.6-develFixed
Affected
3:13.6.233.17-1.24.22.1.2.module+el8.10.0+25293+7b33a103RHSA-2026:98102
AlmaLinux 10nodejs-docsFixed1:22.23.4-1.el10_2ALSA-2026:96094
AlmaLinux 10nodejs24-docsFixed1:24.22.1-3.el10_2ALSA-2026:96088
AlmaLinux 10nodejs24-npmFixed2:11.19.1-1.24.22.1.3.el10_2ALSA-2026:96088
AlmaLinux 10nodejs26Fixed1:26.12.1-3.el10_3ALSA-2026:98619
AlmaLinux 10nodejs26-develFixed1:26.12.1-3.el10_3ALSA-2026:98619
AlmaLinux 10nodejs26-docsFixed1:26.12.1-3.el10_3ALSA-2026:98619
AlmaLinux 10nodejs26-full-i18nFixed1:26.12.1-3.el10_3ALSA-2026:98619
AlmaLinux 10nodejs26-libsFixed1:26.12.1-3.el10_3ALSA-2026:98619
AlmaLinux 10nodejs26-npmFixed1:11.20.0-1.26.12.1.3.el10_3ALSA-2026:98619
AlmaLinux 9nodejsFixed1:26.12.1-2.module_el9.9.0+350+dfbd8996ALSA-2026:98522
AlmaLinux 9nodejs-develFixed1:26.12.1-2.module_el9.9.0+350+dfbd8996ALSA-2026:98522
AlmaLinux 9nodejs-docsFixed1:26.12.1-2.module_el9.9.0+350+dfbd8996ALSA-2026:98522
AlmaLinux 9nodejs-full-i18nFixed1:26.12.1-2.module_el9.9.0+350+dfbd8996ALSA-2026:98522
AlmaLinux 9nodejs-libsFixed1:26.12.1-2.module_el9.9.0+350+dfbd8996ALSA-2026:98522
AlmaLinux 9nodejs-nodemonFixed3.1.14-2.module_el9.9.0+304+ff00f651ALSA-2026:96226
AlmaLinux 9nodejs-packagingFixed2021.06-6.module_el9.7.0+209+ecf6523eALSA-2026:96234
AlmaLinux 9nodejs-packaging-bundlerFixed2021.06-6.module_el9.9.0+304+ff00f651ALSA-2026:96234
AlmaLinux 9npmFixed1:11.20.0-1.26.12.1.2.module_el9.9.0+350+dfbd8996ALSA-2026:98522
AlmaLinux 8nodejsFixed1:22.23.4-2.module_el8.10.0+4358+709b81beALSA-2026:98102
AlmaLinux 8nodejs-develFixed1:24.22.1-2.module_el8.10.0+4355+47fd9055ALSA-2026:98113
AlmaLinux 8nodejs-docsFixed1:24.22.1-2.module_el8.10.0+4355+47fd9055ALSA-2026:98113
AlmaLinux 8nodejs-full-i18nFixed1:22.23.4-2.module_el8.10.0+4358+709b81beALSA-2026:98102
AlmaLinux 8nodejs-libsFixed1:22.23.4-2.module_el8.10.0+4358+709b81beALSA-2026:98102
AlmaLinux 8nodejs-nodemonFixed3.1.14-2.module_el8.10.0+4250+09238ed4ALSA-2026:98113
AlmaLinux 8nodejs-packagingFixed2021.06-6.module_el8.10.0+4158+e796f37fALSA-2026:98102
AlmaLinux 8nodejs-packaging-bundlerFixed2021.06-6.module_el8.10.0+4086+70facd4aALSA-2026:98113
AlmaLinux 8npmFixed1:10.9.9-1.22.23.4.2.module_el8.10.0+4358+709b81beALSA-2026:98102
AlmaLinux 8v8-12.4-develFixed3:12.4.254.21-1.22.23.4.2.module_el8.10.0+4358+709b81beALSA-2026:98113
AlmaLinux 8v8-13.6-develFixed3:13.6.233.17-1.24.22.1.2.module_el8.10.0+4355+47fd9055ALSA-2026:98102
Rocky Linux 10nodejs22Fixed1:22.23.4-1.el10_2RLSA-2026:96094
Rocky Linux 10nodejs24Fixed1:24.22.1-3.el10_2RLSA-2026:96088
Rocky Linux 10nodejs26Fixed1:26.12.1-3.el10_3RLSA-2026:98619
Rocky Linux 10nodejs26-develFixed1:26.12.1-3.el10_3RLSA-2026:98619
Rocky Linux 10nodejs26-docsFixed1:26.12.1-3.el10_3RLSA-2026:98619
Rocky Linux 10nodejs26-full-i18nFixed1:26.12.1-3.el10_3RLSA-2026:98619
Rocky Linux 10nodejs26-libsFixed1:26.12.1-3.el10_3RLSA-2026:98619
Rocky Linux 10nodejs26-npmFixed1:11.20.0-1.26.12.1.3.el10_3RLSA-2026:98619
Rocky Linux 9nodejs-nodemonFixed0:3.1.14-3.module+el9.8.0+40281+14cc6568RLSA-2026:98522
Rocky Linux 9nodejs-packagingFixed0:2021.06-6.module+el9.7.0+40153+4d595597RLSA-2026:98522
Rocky Linux 8nodejs-nodemonFixed0:3.1.14-2.module+el8.10.0+40277+b1b3f89eRLSA-2026:98102
Rocky Linux 8nodejs-packagingFixed0:2021.06-6.module+el8.10.0+40171+8fa9c325RLSA-2026:98113
npm libraryundiciFixed8.12.2GHSA-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.

References

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.