CVE-2026-123868
Patch Available.
This Vulnerability has been fixed in the Never-Ending Support (NES) version offered by HeroDevs.
Overview
Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. It uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, and it is widely used for web applications and server-side development.
A denial of service vulnerability (CVE-2026-123868) has been identified in the Node.js HTTP/2 implementation, which allows an unauthenticated HTTP/2 client to exhaust server memory by sending many small DATA frames on a stream the application is not reading. The maxSessionMemory limit neither bounds this memory nor causes new streams to be refused.
Per OWASP: The Denial of Service (DoS) attack is focused on making a resource (site, application, server) unavailable for the purpose it was designed. There are many ways to make a service unavailable for legitimate users by manipulating network packets, programming, logical, or resources handling vulnerabilities, among others.
This issue affects multiple versions of Node.js.
Details
Module Info
- Product: Node.js
- Affected packages: node (built-in http2 module; src/node_http2.cc)
- Affected versions: >=24.0.0 <24.22.3, >=25.0.0 <26.13.1
- GitHub repository: https://github.com/nodejs/node
- Published packages: https://github.com/nodejs/node/releases/tag/v24.22.2, https://github.com/nodejs/node/releases/tag/v26.13.0
- Package manager: Not applicable. Node.js is distributed as runtime builds from nodejs.org rather than as a published npm package.
- Fixed in:
- OSS Node.js 24.22.3, 26.13.1
- NES for Node.js v12.22.22, v14.21.15, v16.20.17, v18.20.21, v20.20.6
Vulnerability Info
This Medium-severity vulnerability is found in the node package in multiple versions of Node.js. The CVE record lists the 24.x, 25.x and 26.x lines; the same code path is also present in the End-of-Life 12.x, 14.x, 16.x, 18.x and 20.x lines.
The HTTP/2 session enforces maxSessionMemory through a counter, current_session_memory_, which Http2Session::CanAddStream also consults before admitting a new stream. When a DATA frame arrives, Http2Session::OnDataChunkReceived hands the payload to JavaScript as a Buffer in the stream's readable queue. If the application is not reading the stream, the payload stays in that queue, and the only bookkeeping is a per-stream byte count used for flow control:
stream->EmitRead(avail, buf);
// If the stream owner (e.g. the JS Http2Stream) wants more data, just
// tell nghttp2 that all data has been consumed. Otherwise, defer until
// more data is being requested.
if (stream->is_reading())
nghttp2_session_consume_stream(handle, id, avail);
else
stream->inbound_consumed_data_while_paused_ += avail;
Nothing in the paused branch charges the queued data to current_session_memory_. The socket read buffer is only accounted while it is being parsed and is released immediately afterward, so data that remains queued on an undrained stream is accounted to nothing. Http2Session::MaybeStopReading likewise never stops reading the socket because queued inbound data has grown too large.
A peer can exploit this by opening a stream that the server does not consume and sending it a large number of one-byte DATA frames. Each frame becomes a separate Buffer in the readable queue, so the memory the server retains grows with the number of frames rather than the bytes sent, and a single stream can make the server hold hundreds of megabytes. Because CanAddStream checks the same counter that never sees this queue, maxSessionMemory neither bounds the growth nor causes new streams to be refused, which lets an attacker exhaust the server's memory.
Mitigation
Node.js release lines prior to v22 are End-of-Life and will not receive any upstream updates to address this issue. For more information see here. The odd-numbered Node.js 25.x line, which falls inside the affected range, is also End-of-Life.
Users of the affected components should apply one of the following mitigations:
- Upgrade to a supported Node.js release that carries the fix (v24.22.3 or v26.13.1 or later).
- Migrate affected applications away from the End-of-Life Node.js release lines.
- Leverage a commercial support partner like HeroDevs for post-EOL security support.
Credits
- jiri1234 (finder)