CVE-2026-6734
HighCVSS 7.5Exploitation Probability (EPSS)
Low risk30th percentile - higher than 30% of all known CVEs
Summary
In the undici library, a vulnerability allows Socks5ProxyAgent to reuse a single connection pool across different origins without verifying origin match. This causes cross-origin request routing, credential leakage, and potential HTTPS downgrade to HTTP.
Risk Assessment
The organization risks credential and request data being sent to an unintended server, trusting responses from the wrong origin, leading to data confidentiality and integrity breaches.
Recommendation
Upgrade undici to version 7.26.0 or 8.2.0 immediately. If upgrade is not possible, use a separate Socks5ProxyAgent instance per origin.
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)
Impact: When using Socks5ProxyAgent, undici reuses a single connection pool across different origins without verifying that the pool's origin matches the requested origin. All requests are dispatched through the pool connected to the first origin, regardless of the intended destination. This causes cross-origin request routing: credentials and request data intended for origin B are sent to origin A, responses from the wrong origin are trusted, and HTTPS requests may be silently downgraded to HTTP. Impacted users are applications that use Socks5ProxyAgent (directly or via setGlobalDispatcher) and make requests to more than one origin. This was introduced in undici 7.23.0 via PR #4385 and affects all versions through 8.1.0. Patches: Upgrade to undici v7.26.0 or v8.2.0. Workarounds: Use a separate Socks5ProxyAgent instance per origin, or avoid using Socks5ProxyAgent with multiple origins.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

