Vulnerability DatabaseCVE-2026-123874

CVE-2026-123874: 
npm vulnerability analysis and mitigation

Overview

CVE-2026-123874 is a use-after-free vulnerability in Node.js HTTP/2 stream handling, specifically triggered when a server uses respondWithFile() or respondWithFD() to serve files. An unauthenticated remote client can cause the server to free an Http2Stream object while a write request referencing it remains queued on the socket; when that write completes, the code dereferences and makes a virtual call through the freed object, potentially corrupting server memory. The vulnerability affects Node.js 24.x (since 24.22.0) and 26.x (since 26.9.0), and was disclosed on November 11, 2026 as part of a broader Node.js security release. It carries a CVSS v3 base score of 7.5 (High) (Node.js Advisory, GitHub Advisory).

Technical details

The root cause is a use-after-free (CWE-416) combined with an expired pointer dereference (CWE-825) in Node.js's HTTP/2 implementation. When a server responds to a client using stream.respondWithFile() or stream.respondWithFD(), a race condition allows a client to reset the HTTP/2 stream (e.g., via RST_STREAM) while a pending write referencing the Http2Stream object is still queued on the socket. Once the stream is freed, the queued write callback dereferences the now-freed object and performs a virtual function call through it, resulting in memory corruption. The attack requires no authentication, works over both TLS and cleartext HTTP/2, and the only application-level precondition is the use of respondWithFile() or respondWithFD() with default settings (Node.js Advisory, Red Hat Bugzilla).

Impact

Successful exploitation can result in server memory corruption, which may lead to a denial of service (process crash) or, in more advanced scenarios, potential arbitrary code execution through heap manipulation. The primary confirmed impact is availability loss — an unauthenticated attacker can crash the Node.js server process remotely. Confidentiality and integrity impacts are not directly confirmed but cannot be ruled out given the nature of use-after-free vulnerabilities, which can sometimes be leveraged for memory disclosure or control-flow hijacking (Node.js Advisory, GitHub Advisory).

Exploitability

As of the disclosure date, there is no public proof-of-concept exploit and no evidence of in-the-wild exploitation (GitHub Advisory). The NVD SSVC assessment classifies exploitation as "none" and the attack as automatable, meaning a successful exploit could be scripted without human interaction. The EPSS score is approximately 0.47–0.55%, placing it in the 47th percentile for exploitation likelihood within 30 days. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. It was reported by Chris Rohlf in collaboration with Claude and Anthropic Research (Node.js Advisory).

Exploitation steps

  1. Identify target: Locate a Node.js server running version 24.22.0–24.22.2 or 26.9.0–26.13.0 that serves files via stream.respondWithFile() or stream.respondWithFD() over HTTP/2 (TLS or cleartext).
  2. Establish HTTP/2 connection: Connect to the target server using an HTTP/2 client (e.g., curl --http2, h2load, or a custom HTTP/2 client library).
  3. Initiate file download: Send an HTTP/2 request to an endpoint that triggers respondWithFile() or respondWithFD(), causing the server to begin streaming a file response and queue a write referencing the Http2Stream object.
  4. Reset the stream: While the write is still pending (backpressured on the socket), send an RST_STREAM frame to abort the stream, causing the server to free the Http2Stream object prematurely.
  5. Trigger use-after-free: The queued write callback completes and dereferences the freed Http2Stream object, making a virtual call through the dangling pointer, resulting in memory corruption or a process crash (Node.js Advisory, Red Hat Bugzilla).

Indicators of compromise

  • Network: Repeated HTTP/2 RST_STREAM frames sent immediately after initiating requests to file-serving endpoints; unusual patterns of connection resets targeting the same server endpoint over HTTP/2.
  • Logs: Node.js process crash logs or core dumps with stack traces referencing HTTP/2 stream handling code (e.g., Http2Stream, respondWithFile, StreamPipe); sudden process termination with no application-level error caught.
  • Process: Unexpected Node.js process restarts or crashes (especially if managed by a process supervisor like PM2 or systemd); crash dumps showing heap corruption or invalid memory access in HTTP/2 stream teardown code.
  • File System: Core dump files generated by the Node.js process in the working directory or system core dump location following a crash.

Mitigation and workarounds

Node.js has released patched versions addressing this vulnerability: Node.js 24.22.3 and Node.js 26.13.1. All users running affected versions (24.22.0–24.22.2 or 26.9.0–26.13.0) should upgrade immediately. IBM Cognos Analytics users should consult the IBM security bulletin for product-specific guidance. As a temporary workaround if patching is not immediately possible, restrict network access to affected Node.js servers to trusted sources only, and review whether endpoints using respondWithFile() or respondWithFD() can be temporarily disabled or replaced with alternative file-serving mechanisms (Node.js Advisory, IBM Advisory).

Community reactions

The November 2026 Node.js security release, which included CVE-2026-123874 among 16 total CVEs, received broad coverage from security media outlets including The Hacker News, CyberSecurityNews, and CyberPress, with headlines highlighting the HTTP/2 memory corruption and TLS key leak issues (The Hacker News, CyberSecurityNews). The vulnerability was credited to Chris Rohlf working in collaboration with Claude and Anthropic Research, which drew notable attention given the AI-assisted security research angle (Node.js Advisory). Red Hat, IBM, Amazon Linux, and AusCERT all issued advisories or bulletins referencing the release, indicating broad downstream impact across enterprise Linux distributions and commercial products.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

nodejs

Affected

sid

nodejs: 24.22.3+dfsg+~cs24.19.2-1

Fixed

trixie

nodejs

Affected

Ubuntu

Unknown

bionic (esm-apps)

nodejs

Unknown

devel

nodejs

Unknown

focal (esm-apps)

nodejs

Unknown

jammy

nodejs

Unknown

jammy (esm-apps)

nodejs

Unknown

noble

nodejs

Unknown

noble (esm-apps)

nodejs

Unknown

resolute

nodejs

Unknown

RHEL / CentOS

Affected

RHEL 8

nodejs:24/nodejs.src

Affected

RHEL 9

nodejs:24/nodejs.src

Affected

RHEL 10

nodejs24.src

Affected

Alpine

Fixed

edge

nodejs: 24.22.3-r0

Fixed

v3.21

nodejs: 22.23.5-r0

Fixed

v3.22

nodejs: 22.23.5-r0

Fixed

v3.23

nodejs: 24.22.3-r0

Fixed

Source: This report was generated using AI

Related npm vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-123872HIGH8.1
  • npm logonpm
  • nodejs24.src
NoYesNov 11, 2026
CVE-2026-126051HIGH7.5
  • npm logonpm
  • nodejs:26::nodejs-full-i18n
NoYesNov 11, 2026
CVE-2026-123874HIGH7.5
  • npm logonpm
  • nodejs22.src
NoYesNov 11, 2026
CVE-2026-123877MEDIUM6.8
  • npm logonpm
  • nodejs24-debuginfo
NoYesNov 11, 2026
CVE-2026-123875MEDIUM5.9
  • npm logonpm
  • nodejs-current
NoYesNov 11, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management