CVE-2026-123863

Denial of Service
Affects
Node.js
in
Node.js
No items found.
Versions
<22.23.5, >=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-123863) has been identified in the built-in HTTP/2 server of Node.js, which allows an unauthenticated remote client to abort the server process. A client can arrange for an Http2Stream that still holds nghttp2-allocated header buffers to outlive its session, so that a reachable assertion in the session destructor fails and terminates the process, over both TLS and cleartext connections.

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 release lines of Node.js, including the End-of-Life 12.x, 14.x, 16.x, 18.x and 20.x release lines.

Details

Module Info

  • Product: Node.js
  • Affected packages: node (built-in http2 module; src/node_http2.cc)
  • Affected versions: <22.23.5, >=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/v20.20.2
  • 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 22.23.5, 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 High-severity vulnerability is found in the built-in HTTP/2 module (src/node_http2.cc) of Node.js. When a peer sends more header fields than maxHeaderListPairs, the stream is reset, and the fields it had already accepted stay in the stream's current_headers_, each of which holds nghttp2 buffers. Http2Session::RemoveStream() adjusts the session memory accounting for the removed stream but never releases those header buffers:

BaseObjectPtr<Http2Stream> Http2Session::RemoveStream(int32_t id) {
  Debug(this, "Removing stream: %d", id);
  BaseObjectPtr<Http2Stream> stream;
  if (streams_.empty())
    return stream;
  stream = FindStream(id);
  if (stream) {
    streams_.erase(id);
    if (stream->current_headers_length_ > 0) {
      DecrementCurrentSessionMemory(stream->current_headers_length_);
      stream->current_headers_length_ = 0;
    }
    if (stream->retained_headers_length_ > 0) {
      DecrementCurrentSessionMemory(stream->retained_headers_length_);
      stream->retained_headers_length_ = 0;
    }
    DecrementCurrentSessionMemory(sizeof(*stream));
  }
  return stream;
}

A destroyed stream that still has a write on the socket is not detached and can be collected after its session. The session destructor only detaches the streams it still knows about, and Detach() does not free a stream that is referenced elsewhere, so the nghttp2 memory held by the removed stream is still allocated when CHECK_EQ(current_nghttp2_memory_, 0) runs:

Http2Session::~Http2Session() {
  CHECK(!is_in_scope());
  Debug(this, "freeing nghttp2 session");
  // Ensure that all `Http2Stream` instances and the memory they hold
  // on to are destroyed before the nghttp2 session is.
  for (const auto& [id, stream] : streams_) {
    stream->Detach();
  }
  streams_.clear();
  // Explicitly reset session_ so the subsequent
  // current_nghttp2_memory_ check passes.
  session_.reset();
  CHECK_EQ(current_nghttp2_memory_, 0);
}

Because the accounting is nonzero, the assertion fails and the process is terminated. The trigger needs only a default http2 server whose handler responds before the request body has ended, which is typical, and a single connection is enough for a remote client to crash the server. It is a variant of CVE-2024-27983 that the earlier fix did not cover, because that fix only detached streams still tracked in the session.

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 Node.js 25.x release line, which the affected range also covers, is End-of-Life as well.

Users of the affected components should apply one of the following mitigations:

  • 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

  • Chris Rohlf in collaboration with Claude and Anthropic Research (finder)
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
High
ID
CVE-2026-123863
PROJECT Affected
Node.js
Versions Affected
<22.23.5, >=24.0.0 <24.22.3, >=25.0.0 <26.13.1
NES Versions Affected
Published date
November 12, 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.