CVE-2026-87018 is a high-severity (CVSS 7.5) CWE-248 vulnerability in undici. A fix is available for undici — see the affected versions and patch details below.
undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiation
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-87018.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
undicinpmDescription
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | undici | ≥ 4.2.1&&< 6.29.1 | 6.29.1npm install undici@6.29.1 |
| 📦npm | undici | ≥ 7.0.0&&< 7.30.1 | 7.30.1npm install undici@7.30.1 |
| 📦npm | undici | ≥ 8.0.0&&< 8.12.2 | 8.12.2npm install undici@8.12.2 |
Affected Products
undicinodejsDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for undici, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update undici to 6.29.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-87018 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This vulnerability is evaluated as an Important severity flaw for Red Hat products because an unauthenticated remote server can terminate a client Node.js process, halting all concurrent tasks and in-flight operations. In typical Red Hat deployments, containerized microservices and administrative consoles rely on…
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Enterprise Linux 10 | nodejs24-1:24.22.1-3.el10_2 | RHSA-2026:96088 |
| Red Hat Enterprise Linux 10 | nodejs22-1:22.23.4-1.el10_2 | RHSA-2026:96094 |
| Red Hat Enterprise Linux 10 | nodejs26-1:26.12.1-3.el10_3 | RHSA-2026:98619 |
| Red Hat Enterprise Linux 8 | nodejs:24-8100020261105143413.6d880403 | RHSA-2026:98102 |
| Red Hat Enterprise Linux 8 | nodejs:22-8100020261104150431.6d880403 | RHSA-2026:98113 |
| Red Hat Enterprise Linux 9 | nodejs:24-9080020261105135730.rhel9 | RHSA-2026:96226 |
| Red Hat Enterprise Linux 9 | nodejs:22-9080020261103125134.rhel9 | RHSA-2026:96234 |
| Red Hat Enterprise Linux 9 | nodejs:26-9090020261105145947.rhel9 | RHSA-2026:98522 |
Frequently Asked Questions
Is CVE-2026-87018 in your dependencies?
Find it across npm, including transitive dependencies.