Vulnerability DatabaseCVE-2026-126051

CVE-2026-126051: 
npm vulnerability analysis and mitigation

Overview

CVE-2026-126051 is a deferred-callback use-after-destroy vulnerability in Node.js TLS server handshake handling, classified as "remotely triggerable uncaught exception in TLS servers via deferred handshake callbacks." It affects Node.js 24.x (versions 24.0.0 through 24.22.2) and 26.x (versions 25.0.0 through 26.13.0); Node.js 22.x is not affected by this specific CVE. Disclosed on November 11, 2026 as part of the Node.js November 2026 security release batch, it carries a CVSS v3 base score of 7.5 (High) (Node.js Advisory, GitHub Advisory, Red Hat Bugzilla).

Technical details

The root cause is a race condition in Node.js's TLS handshake callback deferral mechanism (CWE-476 NULL Pointer Dereference / CWE-248 Uncaught Exception). When a TLS server registers any of the SNICallback, OCSPRequest, newSession, or resumeSession hooks, or uses server.addContext(), the corresponding OpenSSL callbacks are deferred to a later event loop tick. The deferred code does not check whether the underlying socket has been destroyed between scheduling and execution. An attacker exploits this by sending a crafted TLS Client Hello (e.g., no SNI extension combined with an OCSP request) followed by padding bytes and a TCP FIN, causing OpenSSL to deliver both the Client Hello and the end-of-file signal in the same event loop tick. This destroys the socket before the deferred callback executes, causing the process to raise an uncaught exception rather than emitting a catchable 'error' event, which terminates the server process (Node.js Advisory, Red Hat Bugzilla).

Impact

Successful exploitation results in a complete Denial of Service (DoS) of the affected Node.js server process — the process terminates abruptly due to an uncaught exception. There is no confidentiality or integrity impact; the vulnerability is purely an availability issue. Any internet-facing Node.js 24.x or 26.x TLS server that uses SNI callbacks, OCSP stapling, session hooks, or server.addContext() is at risk of being remotely crashed by an unauthenticated attacker with no special privileges, potentially causing service outages for all users of that server (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 (Feedly). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.77–0.86%, placing it in roughly the 59th percentile for exploitation probability within 30 days. The attack requires no authentication, no user interaction, and low complexity — it is automatable — but only affects servers using specific TLS hooks, which limits the attack surface somewhat (GitHub Advisory, Feedly).

Exploitation steps

  1. Reconnaissance: Identify internet-facing Node.js TLS servers running versions 24.0.0–24.22.2 or 25.0.0–26.13.0 using tools like Shodan or Censys, filtering for HTTPS/TLS services. Probe for indicators that the server uses SNI callbacks, OCSP stapling, or session hooks (e.g., OCSP response headers in TLS handshake).
  2. Craft malicious Client Hello: Construct a TLS Client Hello packet that omits the SNI extension but includes an OCSP status request extension, targeting the deferred OCSPRequest callback path. This causes Node.js to defer the OpenSSL callback to the next event loop tick.
  3. Append padding and TCP FIN: Immediately after the Client Hello, send padding bytes followed by a TCP FIN (socket close). This causes OpenSSL to deliver both the Client Hello and the end-of-file notification in the same event loop tick.
  4. Trigger use-after-destroy: The socket is destroyed before the deferred OpenSSL callback executes. The callback attempts to operate on the destroyed socket, raising an uncaught exception in the Node.js process.
  5. Server crash: The uncaught exception terminates the Node.js server process, achieving a Denial of Service. Repeat as needed to prevent automatic recovery (Node.js Advisory, Red Hat Bugzilla).

Indicators of compromise

  • Logs: Node.js process logs showing an uncaught exception with a stack trace originating from TLS/OpenSSL callback handling (e.g., UnhandledPromiseRejection or uncaughtException events in the TLS handshake path); sudden process exit with no graceful shutdown message.
  • Network: Repeated inbound TLS connections from the same source IP that complete a Client Hello but immediately send a TCP FIN without completing the handshake; TLS Client Hello packets lacking SNI extension but containing OCSP status request extensions followed by immediate connection teardown.
  • Process: Unexpected Node.js process restarts or crashes logged by process managers (e.g., PM2, systemd) with exit code indicating uncaught exception; increased frequency of short-lived TLS connection attempts that do not complete.
  • System: Monitoring alerts for service unavailability or health check failures on TLS-enabled Node.js endpoints correlating with the above network patterns (Node.js Advisory, Red Hat Bugzilla).

Mitigation and workarounds

The primary remediation is to upgrade Node.js to a patched version: 24.22.3 (for the 24.x branch) or 26.13.1 (for the 26.x branch). IBM Cognos Analytics users should apply the vendor-provided security bulletin update (IBM Advisory). If immediate upgrading is not possible, consider implementing network-level filtering to restrict TLS connections from untrusted or unexpected sources, and deploy load balancers or process managers with health checks and automatic restart capabilities to minimize downtime from crashes. Removing or disabling the SNICallback, OCSPRequest, newSession, resumeSession hooks, or server.addContext() usage temporarily can eliminate the vulnerable code path, though this may impact functionality (Node.js Advisory, GitHub Advisory).

Community reactions

The Node.js project credited researcher pimterry for both discovering and fixing CVE-2026-126051, as part of a broader November 11, 2026 security release that addressed 16 CVEs total (Node.js Advisory). Coverage from security outlets including The Hacker News, CyberSecurityNews, and SecurityOnline highlighted the batch release, with particular attention to the TLS private key leak (CVE-2026-123864) and HTTP/2 crash vulnerabilities alongside this CVE. Community discussion on platforms like Mastodon (infosec.exchange) noted the breadth of the release. Red Hat, Amazon Linux, and IBM all issued downstream advisories or bulletins, indicating broad ecosystem impact recognition (Red Hat Bugzilla).

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.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