CVE-2026-123868

Denial of Service
Affects
Node.js
in
Node.js
No items found.
Versions
>=24.0.0 <24.22.3, >=25.0.0 <26.13.1

Patch Available.

Exclamation circle icon
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

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)
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
Medium
ID
CVE-2026-123868
PROJECT Affected
Node.js
Versions Affected
>=24.0.0 <24.22.3, >=25.0.0 <26.13.1
NES Versions Affected
Published date
November 23, 2026
≈ Fix date
November 19, 2026
Category
Denial of Service
Vex Document
Download VEXHow do I use it?
Sign up for the latest vulnerability alerts fixed in
NES for Node.js
Rss feed icon
Subscribe via RSS
or

By submitting the form I acknowledge receipt of our Privacy Policy.

Thanks for signing up for our Newsletter! We look forward to connecting with you.
Oops! Something went wrong while submitting the form.