CVE-2026-123866

Information Exposure
Affects
Node.js
in
Node.js
No items found.
Versions
<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.

An information exposure vulnerability (CVE-2026-123866) has been identified in the Node.js HTTP/2 implementation, which allows attackers to receive freed or unrelated heap memory, including the contents of other connections' response buffers, in place of the intended response. The memory is disclosed when an HTTP/2 stream is torn down while a write of its response is still backpressured on the socket, for example after a peer RST_STREAM or when the server's own per-stream timeout destroys the stream.

Per OWASP: Access control enforces policy such that users cannot act outside of their intended permissions. Failures typically lead to unauthorized information disclosure, modification, or destruction of all data or performing a business function outside the user's limits.

This issue affects multiple versions of Node.js.

Details

Module Info

Vulnerability Info

This High-severity vulnerability is found in the node package in multiple versions of Node.js. The flaw is in the native HTTP/2 module (src/node_http2.cc), in how a stream's queued response data is handed to the session's outgoing socket write.

When JavaScript writes to an Http2Stream, Http2Stream::DoWrite queues one NgHttp2StreamWrite entry per buffer. Only the last entry holds a reference to the originating write request, which owns the buffers:

for (size_t i = 0; i < nbufs; ++i) {
  // Store the req_wrap on the last write info in the queue, so that it is
  // only marked as finished once all buffers associated with it are finished.
  queue_.emplace(NgHttp2StreamWrite {
    BaseObjectPtr<AsyncWrap>(
        i == nbufs - 1 ? req_wrap->GetAsyncWrap() : nullptr),
    bufs[i]
  });
  IncrementAvailableOutboundLength(bufs[i].len);
}

When nghttp2 sends a DATA frame that is smaller than the buffer at the head of the queue, Http2Session::OnSendData slices off the part that fits and pushes it to the session's outgoing write. The slice is a raw pointer into the stream's buffer with no reference to the request that owns it:

// Slice off `length` bytes of the first write in the queue.
session->PushOutgoingBuffer(NgHttp2StreamWrite {
  uv_buf_init(write.buf.base, length)
});
write.buf.base += length;
write.buf.len -= length;
break;

If the stream is destroyed while that socket write is still pending, Http2Stream::Destroy drains the stream's queue and completes the queued write request with UV_ECANCELED, which releases the buffers it owns. The slice already handed to the socket still points into that memory, so when the socket write runs, freed or reused heap memory is sent to the peer instead of the intended response. Any teardown during a backpressured write reaches this path, including an application-initiated one such as a per-stream idle timeout that destroys the stream. On Node.js 24.22.0 and later 24.x releases, and 26.9.0 and later 26.x releases, a remote peer can also trigger the teardown directly with RST_STREAM.

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 23.x and 25.x release lines covered by the affected ranges 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

  • aidan02 (finder)
Vulnerability Details
Severity
Level
CVSS Assessment
Low
>=0 <4
Medium
>=4 <6
High
>=6 <8
Critical
>=8 <10
High
ID
CVE-2026-123866
PROJECT Affected
Node.js
Versions Affected
<22.23.5, >=23.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
Information Exposure
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.