CVE-2026-15157
MediumCVSS 4.2Exploitation Probability (EPSS)
Low risk9th percentile - higher than 9% of all known CVEs
Summary
In undici before versions 6.28.0, 7.29.0, and 8.9.0, the 'type' property of hand-rolled blob-like request bodies is not validated. An attacker can inject CRLF sequences and append arbitrary HTTP headers, potentially smuggling a second request.
Risk Assessment
The risk is request smuggling, which can lead to session hijacking, security bypass, or response manipulation.
Recommendation
Update undici to version 6.28.0, 7.29.0, or 8.9.0 depending on your branch.
Other vulnerabilities in undici
See all- CVE-2026-135194Medium
In undici (HTTP client for Node.js) versions 7.29.1–7.30.3 and 8.10.2–8.14.0, when a dispatcher composes the dump and retry interceptors and the application discards a response body with the dump method, a malicious server announcing a larger content-length than it sends can cause the abort reason to be lost. The default retry function then throws, surfacing as an unhandled error event that exits the Node.js process. A remote, unauthenticated server can trigger denial of service with a single response.
- CVE-2026-133890High
In undici (HTTP client for Node.js) versions 7.30.1–7.30.3 and 8.12.2–8.14.0, the fix for earlier cross-origin redirect cache poisoning issues is incomplete. A path beginning with two slashes is misread as a protocol-relative URL, so a redirect to an attacker-controlled origin can be recorded as a hop to the trusted origin and bypass the every-hop origin check. An attacker controlling a redirect target can have their response cached under the trusted URL and served to later callers from the shared cache.
- CVE-2026-132045Low
In undici (HTTP client for Node.js) versions 7.29.0–7.30.3 and 8.9.0–8.14.0, the RFC 9111 cache interceptor parses Cache-Control and Vary response headers with a regular expression that backtracks quadratically. A malicious origin returning a header value with a long run of internal whitespace forces quadratic CPU time and synchronously blocks the Node.js event loop for about 100–200 ms at the default header limit, and for several seconds when the limit is raised. The default fetch and request paths are not affected because they trim headers with a linear scanner.
- CVE-2026-129981Medium
In undici (HTTP client for Node.js) versions 7.17.0–7.30.3 and 8.0.0–8.14.0, when the cache interceptor uses a shared cache and serves a response within its stale-while-revalidate window, it revalidates the stored response in the background. If that background 304 Not Modified carries an ETag differing from the cached representation, undici reuses the stored body and binds it to the new validator instead of discarding it. A remote origin can thus make the shared cache keep serving a stale representation to later callers.
- CVE-2026-144348Low
undici is an HTTP client for Node.js. In versions 5.16.0 through 6.29.1, 7.0.0 through 7.30.3, and 8.0.0 through 8.14.0, ProxyAgent adds the proxy credentials (from the auth or token options, or the username and password in the proxy URL) as a proxy-authorization entry directly on the headers object passed in its options instead of on a copy, so every other agent holding that same object sends those credentials to its own proxy. EnvHttpProxyAgent, available since 6.14.0, passes the same headers object to the agents it creates for HTTP_PROXY and HTTPS_PROXY, so when an application sets the headers option and the two variables name different proxies, one proxy receives the credentials meant for the other. The same happens when an application reuses one headers object across several ProxyAgent instances, letting the operator of one proxy capture credentials intended for another. Applications that do not set the headers option are not affected. The issue is fixed in undici 6.29.2, 7.30.4, and 8.14.1.
- CVE-2026-141997High
undici, an HTTP client for Node.js, in versions 6.26.0 through 6.29.1, 7.26.0 through 7.30.3, and 8.3.0 through 8.4.0 contains an assertion failure when a server sends a large response and closes the connection during backpressure. This causes an uncaught AssertionError and terminates the Node.js process via a malicious or compromised server.
- CVE-2026-141996High
undici in versions 6.8.0 through 6.29.1, 7.0.0 through 7.30.3, and 8.0.0 through 8.14.0 has a flaw in the redirect interceptor: on a cross-origin redirect it keeps the TLS servername of the first request, so the target's certificate is validated against the first host's name. A party with a valid certificate for the first host can impersonate the target and intercept or modify the redirected request and response.
- CVE-2026-139849High
undici in versions 6.14.0 through 6.29.1, 7.0.0 through 7.30.3, and 8.0.0 through 8.14.0 has a flaw in EnvHttpProxyAgent: target TLS options are applied on only one route (direct or proxied), so ca, checkServerIdentity, servername, client certificate, and rejectUnauthorized settings are silently dropped. This can let an attacker with a publicly trusted certificate intercept connections the application expected to pin.
- CVE-2026-139839Medium
undici, an HTTP client for Node.js, in versions 7.17.0 through 7.30.3 and 8.0.0 through 8.14.0 has an issue in the shared cache interceptor: when a stale entry is served within its stale-while-revalidate window and revalidated in the background, a 304 Not Modified response that adds a Vary field the stored response did not have is not treated as a change of representation. undici re-stores the old, unvaried body under the background caller's value of that header and marks it fresh, so later callers with that header value are served a body generated for a different request, possibly for another user or tenant, without the origin being contacted.
- CVE-2026-139829High
undici in versions 7.0.0 through 7.30.3 and 8.0.0 through 8.14.0 has a flaw when using the stream API with a Node.js Readable request body over HTTP/2: a server that starts a response and destroys the HTTP/2 session during upload causes the error path to be invoked twice, leading to an uncaught TypeError and Node.js process exit. The attacker only needs to control the HTTP/2 server's behavior.
Original NVD description (English source)
undici does not validate the type property of a duck-typed blob-like request body before using it as the Content-Type header on the HTTP/1.1 dispatcher. In undici before 6.28.0, from 7.0.0 up to before 7.29.0, and from 8.0.0 up to before 8.9.0, an application that passes a hand-rolled blob-like body (via request, stream, pipeline, or dispatch) whose type is derived from untrusted input allows an attacker to inject CRLF sequences and append arbitrary HTTP headers, potentially smuggling a second request past the upstream. Native Blob objects are safe because their constructor strips CRLF from the type, and fetch is unaffected because it validates headers, but ecosystem libraries that build duck-typed blob shapes from user input can reach the vulnerable path. This is the same defect class as CVE-2022-35948 and CVE-2026-1527, on a header sink that the earlier fixes did not cover. The issue is fixed in undici 6.28.0, 7.29.0, and 8.9.0.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

