BIT-node-2026-123868: Node.js is vulnerable to an HTTP/2 memory exhaustion denial of service via unaccounted inbound DATA on an undrained stream
An unauthenticated HTTP/2 client can exhaust Node.js server memory because inbound DATA queued on an undrained stream is charged to no session budget. Each inbound DATA frame creates one JavaScript Buffer view in the receiving stream's readable queue, but nothing charges that queue to currentsessionmemory: the socket read buffer is accounted only during parsing and released immediately, so whatever stays queued is accounted to nothing. A peer that fills a stream's receive window with one-byte DATA frames pays about 10 wire bytes per frame while the server retains about 114 bytes per frame, so a single stream on one connection can retain hundreds of megabytes from tens of megabytes sent. maxSessionMemory neither bounds the growth nor refuses new streams, because Http2Session::CanAddStream gates admission on the same counter that never sees the queue. This vulnerability affects Node.js 26.x and 24.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 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 affected Node.js 26.x or 24.x that accept HTTP/2 connections are exposed. The issue can be triggered by an unauthenticated client, so it is relevant to Internet-reachable HTTP/2 endpoints.
What does an attacker need to do to cause the denial of service?
An attacker needs to establish an HTTP/2 connection and send many one-byte DATA frames on a stream that the server does not drain. A single stream can retain hundreds of megabytes of server memory while requiring only tens of megabytes of attacker traffic.
Does configuring maxSessionMemory prevent this issue?
No. Queued inbound DATA on an undrained stream is not charged to the session memory counter, so maxSessionMemory does not bound this growth or prevent additional stream admission.