CVE-2026-21637

nodejs: Nodejs denial of service

Published Jan 20, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
A flaw in Node.js TLS error handling allows remote attackers to crash or exhaust resources of a TLS server when `pskCallback` or `ALPNCallback` are in use. Synchronous exceptions thrown during these callbacks bypass standard TLS error handling paths (tlsClientError and error), causing either immediate process termination or silent file descriptor leaks that eventually lead to denial of service. Because these callbacks process attacker-controlled input during the TLS handshake, a remote client can repeatedly trigger the issue. This vulnerability affects TLS servers using PSK or ALPN callbacks across Node.js versions where these callbacks throw without being safely wrapped.

Analysis

AI-generated

Technical impact

A flaw in Node.js TLS error handling permits remote attackers to crash or exhaust resources of a TLS server when PSK or ALPN callbacks are active. Synchronous exceptions thrown during these callbacks bypass the standard TLS error paths, causing immediate process termination or silent file descriptor leaks that progress to denial of service. The weakness originates from unchecked return values and improper error handling, exposing the server to denial of service through attacker‑controlled TLS handshake input.

Affected Systems

Any deployment of Node.js that employs PSK or ALPN callback functions within its TLS server is vulnerable. The impact applies across all Node.js versions where these callbacks throw without being safely wrapped. Systems that expose TLS services and rely on user‑supplied callbacks during the handshake are at risk.

Risk and Exploitability

The vulnerability carries a CVSS score of 7.5, indicating high severity, and the EPSS score is 1%, suggesting a low exploitation probability at present. It is not catalogued in the CISA KEV list. The likely attack vector is a remote TLS client that requests a session using PSK or ALPN, delivering crafted input to trigger a callback exception. When triggered, the server either terminates or leaks file descriptors, leading to resource exhaustion and denial of service. No special privileges or local access are required to exploit the flaw.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install the latest Node.js release that fixes the TLS error handling flaw, as documented in the Node.js December 2025 vulnerability advisory.
  • If an update is not immediately possible, remove or disable PSK and ALPN callback functions from your TLS server implementation, preventing the exception paths that lead to crashes or leaks.
  • Configure your TLS server to enforce stricter timeout and resource limits on connections, and monitor for unexpected file descriptor consumption or sudden process termination.

Generated by OpenCVE AI on June 18, 2026 at 05:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4598-1 nodejs security update
Debian DSA Debian DSA DSA-6166-1 nodejs security update
Debian DSA Debian DSA DSA-6183-1 nodejs security update
History
Type Values Removed Values Added
First Time appeared Nodejs node.js
CPEs cpe:2.3:a:nodejs:node.js:*:*:*:*:-:*:*:*
Vendors & Products Nodejs node.js
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Type Values Removed Values Added
Weaknesses CWE-400
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title nodejs: Nodejs denial of service
Weaknesses CWE-248
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
First Time appeared Nodejs
Nodejs nodejs
Vendors & Products Nodejs
Nodejs nodejs
Type Values Removed Values Added
Description A flaw in Node.js TLS error handling allows remote attackers to crash or exhaust resources of a TLS server when `pskCallback` or `ALPNCallback` are in use. Synchronous exceptions thrown during these callbacks bypass standard TLS error handling paths (tlsClientError and error), causing either immediate process termination or silent file descriptor leaks that eventually lead to denial of service. Because these callbacks process attacker-controlled input during the TLS handshake, a remote client can repeatedly trigger the issue. This vulnerability affects TLS servers using PSK or ALPN callbacks across Node.js versions where these callbacks throw without being safely wrapped.
References
Metrics cvssV3_0

{'score': 5.9, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-248

    Uncaught Exception

  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
hackerone
Published
Updated
Jan 21, 2026, 8:22 PM
Reserved
Jan 1, 2026, 3:00 PM
Status
Analyzed
Published
Jan 20, 2026, 9:16 PM
Modified
Jun 17, 2026, 10:18 AM
Severity
Moderate
Public date
Jan 20, 2026, 8:41 PM