{"id":"CVE-2026-85024","aliases":["CVE-2026-85024","GHSA-3wwx-pv8p-q78v"],"related":[],"kind":"vulnerability","state":"published","title":"undici vulnerable to Denial of Service via unhandled error in WebSocket permessage-deflate decompression","summary":"undici bundles a WebSocket client whose permessage-deflate size-limit cleanup removes all listeners from the internal zlib inflate stream, including its error listener, while that stream can still emit. When a remote peer sends a compressed payload that crosses the built-in 128 MiB decompressed-payload limit and then contains a malformed DEFLATE byte, the inflate stream emits a data error with no listener attached, which Node.js treats as a fatal unhandled error and terminates the entire process. Exploitation is remote and unauthenticated, requires no application mistake, and is asymmetric, since roughly 130 KB on the wire expands past the limit and crashes the process, and reconnecting can repeat the crash. This affects undici versions from 6.25.0 up to 6.28.1, from 7.28.0 up to 7.29.1, and from 8.1.0 up to 8.10.2. Users should upgrade to undici 6.28.1, 7.29.1, or 8.10.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"undici bundles a WebSocket client whose permessage-deflate size-limit cleanup removes all listeners from the internal zlib inflate stream, including its error listener, while that stream can still emit. When a remote peer sends a compressed payload that crosses the built-in 128 MiB decompressed-payload limit and then contains a malformed DEFLATE byte, the inflate stream emits a data error with no listener attached, which Node.js treats as a fatal unhandled error and terminates the entire process. Exploitation is remote and unauthenticated, requires no application mistake, and is asymmetric, since roughly 130 KB on the wire expands past the limit and crashes the process, and reconnecting can repeat the crash. This affects undici versions from 6.25.0 up to 6.28.1, from 7.28.0 up to 7.29.1, and from 8.1.0 up to 8.10.2. Users should upgrade to undici 6.28.1, 7.29.1, or 8.10.2.","source":"cvelist"},{"lang":"en","text":"## Impact\n\nundici's WebSocket client (including Node.js's bundled `globalThis.WebSocket`) crashes the entire Node.js process when a remote WebSocket peer sends a permessage-deflate compressed message that crosses the decompressed-payload size limit and then contains a malformed DEFLATE block. In `lib/web/websocket/permessage-deflate.js`, the size-limit cleanup calls `removeAllListeners()` on the internal zlib `InflateRaw`, removing its `error` listener, but leaves the stream running. The inflater then emits a `Z_DATA_ERROR` with no listener attached, which Node.js treats as a fatal unhandled `error` event and terminates the process. Application `error`/`close` handlers on the public WebSocket cannot observe or prevent this, because the failing object is the internal `InflateRaw`.\n\nA malicious or compromised WebSocket server can crash a client with a single connection, unauthenticated and without any application mistake. The attack is asymmetric (about 130 KB on the wire expands past the limit) and can be repeated on reconnect (crash loop).\n\nAffected applications are those using the undici WebSocket client (`new WebSocket(...)`) or Node.js's bundled `globalThis.WebSocket` that can be induced to connect to an attacker-controlled or compromised WebSocket endpoint.\n\n## Patches\n\nUpgrade to undici v6.28.1, v7.29.1 or v8.10.2.\n\n## Workarounds\n\nNo workaround is available.","format":"markdown","source":"ghsa"}],"published":"2026-09-04T16:20:34.709Z","modified":"2026-09-28T22:00:08.266Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-248"],"affected":[{"ranges":[{"type":"semver","introduced":"6.25.0","fixed":"6.28.1","status":"affected"},{"type":"semver","version":"6.28.1","status":"unaffected"},{"type":"semver","introduced":"7.28.0","fixed":"7.29.1","status":"affected"},{"type":"semver","version":"7.29.1","status":"unaffected"},{"type":"semver","introduced":"8.1.0","fixed":"8.10.2","status":"affected"},{"type":"semver","version":"8.10.2","status":"unaffected"}],"vendor":"undici","product":"undici","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"6.25.0","status":"affected","fixed":"6.28.1"}],"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"7.28.0","status":"affected","fixed":"7.29.1"}],"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"8.1.0","status":"affected","fixed":"8.10.2"}],"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"6.25.0","fixed":"6.28.1"},{"status":"affected","introduced":"7.28.0","fixed":"7.29.1"},{"status":"affected","introduced":"8.1.0","fixed":"8.10.2"}],"vendor":"nodejs","product":"undici","cpe":"cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-3wwx-pv8p-q78v","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85024","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/commit/07c60d9c7099a910451244afe42861bbdbdd974c","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/commit/4411a238a98e8791da5fff10cc9e3578a7668ed6","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/commit/63cf698b611fecc6ee0a17b185b930051e4b982f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/releases/tag/v6.28.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/releases/tag/v7.29.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/releases/tag/v8.10.2","tags":["web"],"sources":["ghsa"]}],"credits":["mcollina","krsecu","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-04T19:30:33.342Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-85024","url":"https://www.cve.org/CVERecord?id=CVE-2026-85024","licence":"CVE Terms of Use","modified":"2026-09-04T19:30:54.293Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3wwx-pv8p-q78v","url":"https://github.com/advisories/GHSA-3wwx-pv8p-q78v","licence":"CC-BY-4.0","modified":"2026-09-28T22:00:08.266Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-85024","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-85024","licence":"Public domain","modified":"2026-09-16T20:41:46.040Z"}],"updatedAt":"2026-11-25T22:59:36.375Z","epss":{"score":0.00336,"percentile":0.28921,"date":"2026-12-01T12:00:22.000Z"}}