Node.js is vulnerable to a zlib denial of service via a stream destroy during a pending params() call
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 22.23.5, 24.22.3 and 26.13.1.
An uncatchable exception in the Node.js zlib streaming API lets a peer crash a process by disconnecting while data is being compressed. zlib.params() queues a flush and completes its work in that write's callback; if the stream is destroyed first, as pipeline() does when the peer goes away, Writable still invokes the callback with an error, but the callback ignores its arguments and asserts that the native handle still exists. The handle is gone, so an ERR_INTERNAL_ASSERTION is thrown from inside stream internals and bypasses the stream's error event, the params() callback, and the pipeline() callback, terminating the process. An application is affected only if it calls deflate.params() while streaming to a peer, which is uncommon. This vulnerability affects Node.js 26.x, 24.x, and 22.x.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| nodejs | >=0.0.0 <22.23.5, >=23.0.0 <24.22.3, >=25.0.0 <26.13.1 | 22.23.5, 24.22.3, 26.13.1 |
Timeline
Every event on this vulnerability
Embed
A live severity badge for an advisory, README or ticket