{"schemaVersion":3,"id":"CVE-2026-87018","aliases":["DEBIAN-CVE-2026-87018","UBUNTU-CVE-2026-87018"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-10-15T18:38:25.613Z","modified":"2026-10-16T20:01:29.402Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","exploitability":10,"impact":6,"computed":true}]},"epss":{"probability":0.00187,"percentile":0.07843,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-10-16T00:00:00.000Z","score":0.00184,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00184,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00184,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00184,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00187,"percentile":0.07843}],"last30":[{"date":"2026-10-16T00:00:00.000Z","score":0.00184,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00184,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00184,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00184,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00187,"percentile":0.07843}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-248","name":"Uncaught Exception","description":"An exception is thrown from a function, but it is not caught.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/248.html"},{"id":"CWE-617","name":"Reachable Assertion","description":"The product contains an assert() or similar statement that can be triggered by an attacker, which leads to an application exit or other behavior that is more severe than necessary.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/617.html"}],"affected":[{"vendor":"debian","product":"node-undici","name":"node-undici","label":"node-undici","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/node-undici","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"node-undici","name":"node-undici","label":"node-undici","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/node-undici","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"nodejs","product":"undici","name":"undici","label":"undici","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.2.1, < 6.29.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.0.0, < 7.30.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.0.0, < 8.12.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.2.1, < 6.29.1 | ≥ 7.0.0, < 7.30.1 | ≥ 8.0.0, < 8.12.2","eol":null,"hubHref":"/vendor/nodejs/undici"},{"vendor":"undici","product":"undici","name":"undici","label":"undici","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.2.1, < 6.29.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 7.0.0, < 7.30.1","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.0.0, < 8.12.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.2.1, < 6.29.1 | ≥ 7.0.0, < 7.30.1 | ≥ 8.0.0, < 8.12.2","eol":null,"hubHref":"/vendor/undici/undici"}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-qrxm-fqhp-jwvm","label":"github.com/nodejs/undici/security/advisories/GHSA-qrxm-fqhp-jwvm","hostname":"github.com","tags":["REPORT","Vendor Advisory"]},{"url":"https://cna.openjsf.org/security-advisories.html","label":"cna.openjsf.org/security-advisories.html","hostname":"cna.openjsf.org","tags":["REPORT","Vendor Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-87018","label":"security-tracker.debian.org/tracker/CVE-2026-87018","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-87018","label":"ubuntu.com/security/CVE-2026-87018","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-87018","label":"www.cve.org/CVERecord?id=CVE-2026-87018","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":["RHSA-2026:84657","RHSA-2026:84706"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-10-15T18:38:25.613Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-10-16T20:01:29.402Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:40:38.966Z","stale":false,"partial":false}}