CVE-2026-85024: Js Node Stream Removealllisteners Without Destroy

removeAllListeners() detaches every listener from this stream, including the 'error' listener, while the stream itself is left running. If the stream still holds buffered input (or receives more bytes from a remote peer) it can emit 'error' with no listener attached; Node.js escalates an 'error' event with no listener into an uncaught exception and terminate

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-85024-js-node-stream-removealllisteners-without-destroy --engine opengrep

Description

removeAllListeners() detaches every listener from this stream, including the 'error' listener, while the stream itself is left running. If the stream still holds buffered input (or receives more bytes from a remote peer) it can emit 'error' with no listener attached; Node.js escalates an 'error' event with no listener into an uncaught exception and terminate