BIT-node-2026-123874: Node.js is vulnerable to an HTTP/2 use-after-free via respondWithFile() stream reset during a pending write
A use-after-free in Node.js HTTP/2 lets an unauthenticated client corrupt server memory, over both TLS and cleartext, when the server serves files with respondWithFile() or respondWithFD(). A client can make the server free an Http2Stream while a write request that points to it is still queued on the socket; when that write completes, the code dereferences and makes a virtual call through the freed object. The only precondition is that the application serves a file with stream.respondWithFile() or stream.respondWithFD(), with default settings otherwise. This vulnerability affects Node.js 26.x (since 26.9.0) and 24.x (since 24.22.0).
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- 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 24.22.3 - Upgrade
Upgrade
bitnami/node-minto a version that resolves this vulnerability.Fixed in 26.13.1
Event History
Frequently Asked Questions
Which deployments are exposed?
Deployments using Node.js 26.x from 26.9.0 onward or Node.js 24.x from 24.22.0 onward are affected if their HTTP/2 application serves files through stream.respondWithFile() or stream.respondWithFD(). Both TLS-protected and cleartext HTTP/2 connections are exposed.
Does exploitation require authentication or unusual configuration?
No. An unauthenticated client can trigger the issue, and the stated precondition is only that the application uses respondWithFile() or respondWithFD(); other settings may remain at their defaults.
What is the impact of a successful exploit?
A client can cause the server to dereference a freed Http2Stream while a queued socket write completes, resulting in server-memory corruption. The supplied vector indicates a high availability impact, with no stated confidentiality or integrity impact.