CVE-2026-123865

Denial of Service
Affects
Node.js
in
Node.js
No items found.
Versions
>=0.0.0 <22.23.5, >=23.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-123865) has been identified in the Node.js HTTP/2 implementation, which allows unauthenticated attackers to permanently leak server memory and file descriptors. A client that sends GOAWAY(NO_ERROR) and then triggers a protocol error leaves behind a session that is never cleaned up, and repeating this exhausts the server's resources.

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. If a service receives a very large number of requests, it may cease to be available to legitimate users. In the same way, a service may stop if a programming vulnerability is exploited, or the way the service handles resources it uses.

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: >=0.0.0 <22.23.5, >=23.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 node package in multiple versions of Node.js. When nghttp2 hits a protocol error, such as an oversized frame header, it terminates the session internally by queuing a GOAWAY frame, without invoking any application-level callback. Node.js detects this case in Http2Session::OnFrameSent, but only when the session is not already shutting down:

if (frame->hd.type == NGHTTP2_GOAWAY && !session->is_closing() &&
    !session->is_destroyed() && !session->IsGracefulCloseInitiated() &&
    !session->goaway_initiated_) {
  Debug(session, "nghttp2 session terminated internally");
  session->internal_goaway_sent_ = true;
}

Http2Session::SendPendingData reports the error to JavaScript, and so tears the session down, only when that flag is set:

if (internal_goaway_sent_) {
  internal_goaway_sent_ = false;
  if (!is_closing() && !is_destroyed()) {
    Isolate* isolate = env()->isolate();
    HandleScope scope(isolate);
    Local<Value> arg = Integer::New(isolate, NGHTTP2_ERR_PROTO);
    MakeCallback(env()->http2session_on_error_function(), 1, &arg);
  }
}

A remote peer can disarm this check. When a server receives GOAWAY with the NGHTTP2_NO_ERROR code, onGoawayData in lib/internal/http2/core.js begins a graceful shutdown:

if (code === NGHTTP2_NO_ERROR) {
  // If this is a no error goaway, begin shutting down.
  // No new streams permitted, but existing streams may
  // close naturally on their own.
  session.close();
}

session.close() sends a GOAWAY of its own, which sets goaway_initiated_ and starts a graceful close. If the attacker opens a stream, sends GOAWAY(NO_ERROR), and then sends a malformed frame, nghttp2 terminates the session internally, but OnFrameSent ignores the resulting GOAWAY because a shutdown was already in progress. nghttp2 no longer reads from or writes to the connection, the open stream never completes, and Node.js never destroys the session. The socket stays in CLOSE_WAIT and all of the connection's HTTP/2 state is held in memory indefinitely, at no further cost to the attacker. Default HTTP/2 servers created with http2.createServer() or http2.createSecureServer() are exposed, and repeated connections exhaust the process's memory and file descriptors.

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 23 and 25 release lines are 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 (v22.23.5, 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

Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
High
ID
CVE-2026-123865
PROJECT Affected
Node.js
Versions Affected
>=0.0.0 <22.23.5, >=23.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.