BIT-node-2026-123866: Node.js is vulnerable to HTTP/2 response memory disclosure via a use-after-free during stream teardown
A use-after-free in Node.js HTTP/2 stream teardown can leak response memory, including the contents of other connections' response buffers, to a peer. When a stream is torn down while a write is still backpressured, for example by a peer RSTSTREAM or by the server's own per-stream timeout destroying the stream, the stream's response buffer is freed but a reference to it is still used, so freed or unrelated heap memory is written to the socket instead of the intended response. On Node.js 26.x and 24.x the teardown can be driven purely by a remote peer once the window-size change from 26.9.0 and 24.22.0 is present, and on all supported lines the same defect is reachable through an application-initiated teardown such as a per-stream idle timeout. This vulnerability affects Node.js 26.x, 24.x, and 22.x.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
bitnami/nodeto a version that resolves this vulnerability.Fixed in 22.23.5 - Upgrade
Upgrade
bitnami/nodeto a version that resolves this vulnerability.Fixed in 24.22.3 - Upgrade
Upgrade
bitnami/nodeto a version that resolves this vulnerability.Fixed in 26.13.1 - Upgrade
Upgrade
bitnami/node-minto a version that resolves this vulnerability.Fixed in 22.23.5 - Upgrade
Upgrade
bitnami/node-minto a version that resolves this vulnerability.Fixed in 24.22.3 - Upgrade
Upgrade
bitnami/node-minto a version that resolves this vulnerability.Fixed in 26.13.1
Event History
Frequently Asked Questions
Can an unauthenticated remote peer trigger this issue?
Yes, on Node.js 26.x and 24.x where the window-size change from 26.9.0 or 24.22.0 is present, a remote peer can drive the affected teardown path through an HTTP/2 RST_STREAM. No authentication or user interaction is indicated by the supplied vector.
Are Node.js 22.x deployments exposed to remote-only exploitation?
The data identifies 22.x as affected, but only states that remote-peer-driven teardown applies to 26.x and 24.x with the specified window-size changes. On all supported lines, including 22.x, the defect is reachable when the application initiates teardown, such as through a per-stream idle timeout.
What conditions are needed for memory disclosure?
A stream must be torn down while a response write remains backpressured. Teardown may occur after a peer sends RST_STREAM or when the server destroys the stream through an application mechanism such as a per-stream timeout.
What could be disclosed?
The server may write freed or unrelated heap memory to the socket rather than the intended response. This can include response-buffer contents belonging to other connections.