CVE-2026-138000

Description

A flaw was found in undici. A remote attacker controlling a web server can cause a Denial of Service (DoS) by sending a partial response body and prematurely closing the connection. When the client attempts to automatically resume the request with headers formatted as an array of key-value pairs, the retry mechanism improperly parses the headers and triggers an unhandled error, terminating the Node.js process.

Statement

An issue in the undici HTTP client for Node.js is rated as Important because an unhandled exception triggered by a remote server response can cause a denial of service by crashing the client process without requiring authentication. In Red Hat environments, Node.js applications utilizing undici to consume external endpoints may experience service disruption if an upstream server sends a truncated resumable response. However, successful exploitation requires non-default application configuration where retry interceptors are composed outside header normalization logic and request headers are formatted as tuple arrays.

Mitigation

To mitigate this flaw, reconfigure application calls using undici to pass request headers as a plain JavaScript object or as a flat key-value array rather than an array of header name-value pairs. Alternatively, structure interceptor chains so that retry logic is composed inside header normalization interceptors.

Caveats: Application source code or request initialization must be adjusted where undici client instances or requests are defined. Node.js application services must be restarted for configuration changes to take effect.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score7.5N/A7.5
Attack VectorNetworkN/ANetwork
Attack ComplexityLowN/ALow
Privileges RequiredNoneN/ANone
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityNoneN/ANone
Integrity ImpactNoneN/ANone
Availability ImpactHighN/AHigh

Vector

Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

cve.org: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Understanding the Weakness (CWE)

Availability,Confidentiality

Technical Impact: DoS: Crash, Exit, or Restart; Read Application Data

An uncaught exception could cause the system to be placed in a state that could lead to a crash, exposure of sensitive information, or other unintended behaviors.

Frequently Asked Questions

Want to get errata notifications? Sign up here.