Skip to content

chore(deps): update dependency undici to v8.14.1 - #74

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/undici-8.x
Open

renovate[bot] wants to merge 1 commit into
masterfrom
renovate/undici-8.x

Conversation

@renovate

@renovate renovate Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
undici (source) 8.13.1 → 8.14.1 age adoption passing confidence

Release Notes

nodejs/undici (undici)

v8.14.1

Compare Source

⚠️ Security Fixes

This release fixes thirteen vulnerabilities.

CVE-2026-141996 / GHSA-fgj4-8x8v-fqhm (high)

The redirect interceptor kept the TLS servername of the first request when it followed a cross-origin redirect, so the redirect target's certificate was verified against the original host's name instead of its own. A party holding a valid certificate for the original host and able to intercept traffic to the redirect target could impersonate the target. This affects interceptors.redirect() when the request carries a servername, either passed as a request option or set by interceptors.dns() composed outside the redirect interceptor. servername is now cleared on cross-origin redirects, and same-origin redirects keep the caller's value.

CVE-2026-139849 / GHSA-5p8q-mfqp-v63m (high)

EnvHttpProxyAgent applied the application's target TLS options on only some routes: requestTls was ignored when a request went direct, either because no proxy variable was set or because the host matched NO_PROXY, and connect was ignored when a request was tunnelled through a proxy. Depending on the proxy environment variables, a private CA, certificate pinning, client certificate or rejectUnauthorized setting could be silently replaced by Node.js's default trust store and hostname check. Target TLS options now apply on every route, field by field, with connect taking precedence over requestTls and requestTls over tls. proxyTls still applies only to the connection to the proxy.

CVE-2026-133890 / GHSA-v75p-g438-v7rr (high)

Undici 8.12.2 through 8.14.0 recorded a redirect hop whose path starts with // as a protocol-relative URL, so a request sent to an attacker-controlled origin could be recorded as a hop on the trusted origin. With a shared cache and compose(redirect(), cache()), a trusted URL that redirects to a URL the attacker controls could have the attacker's response cached under the trusted URL and served to later callers, and a cross-origin 304 could revalidate the trusted entry. Redirect hops are now recorded from the origin the request was actually sent to.

CVE-2026-137980 / GHSA-8gc2-q8ww-ghwg (high)

MemoryCacheStore and SqliteCacheStore kept every response body chunk as a separate Buffer while counting only payload bytes against their size limits. A malicious origin sending a cacheable response as a large number of tiny chunks could exhaust process memory while maxEntrySize and maxSize were still satisfied. Both stores now coalesce small chunks, so retained memory scales with the payload size rather than the chunk count.

CVE-2026-139829 / GHSA-mf4q-95qj-5v8f (high)

With the stream() API and a streaming request body, an error on the request body after the response had started reached the stream handler twice and threw an uncaught TypeError, terminating the process. A malicious HTTP/2 server could trigger this by destroying the session while the upload was still in progress. The callback is now invoked exactly once.

CVE-2026-137987 / GHSA-w33r-f3gw-3gch (high)

A malicious HTTP/2 origin could hold a request without opening a stream for it, by advertising SETTINGS_MAX_CONCURRENT_STREAMS = 0 or by withholding SETTINGS from an extended CONNECT such as a WebSocket handshake, and then repeatedly close the connection. Undici reconnected and replayed the held request without limit, consuming CPU while the request never settled. Held requests are now charged against the existing GOAWAY replay budget, so they are replayed once and then fail.

CVE-2026-138000 / GHSA-4232-7jh5-4qqf (high)

In undici 8.12.0 through 8.14.0, when the retry interceptor was composed outside an interceptor that normalizes request headers (such as dns) and request headers were given as an array of [name, value] pairs, an origin that closed a resumable response mid-body made the retry interceptor throw an uncaught TypeError while building the resume request, terminating the process. Tuple-array headers are now handled when resuming.

CVE-2026-139839 / GHSA-hx5c-5pjj-2548 (medium)

When a shared cache served a stale entry inside its stale-while-revalidate window, a background revalidation 304 that added a Vary field re-stored the old, unvaried body under the background caller's value of that header and marked it fresh. Later callers with that value could be served a response generated for another user or tenant. A background 304 that changes the stored Vary fields, or that was produced by a redirect target rather than the cached URL, now removes the stored entry instead of refreshing it.

CVE-2026-129981 / GHSA-qpmw-hmf2-3j36 (medium)

A background stale-while-revalidate revalidation accepted a 304 Not Modified whose ETag differed from the cached representation, and kept serving the old body under the new validator and freshness lifetime. On a shared cache holding per-caller responses, this could serve one caller's response to another. The background path now rejects a mismatched validator and re-fetches, as the synchronous revalidation path already did.

CVE-2026-139823 / GHSA-g489-q6j6-rh55 (medium)

The cache interceptor keyed responses by origin and path, but sent an explicit Host request header to the server as given. When an application sent requests for several hosts to one origin by setting the Host header, a cached response for one host could be served for another without reaching the server. Requests whose Host header names a different authority than the origin now bypass the cache. Persistent stores such as SqliteCacheStore populated before upgrading may still hold such entries and should be cleared.

CVE-2026-135194 / GHSA-pj2v-wx4q-45vc (medium)

In undici 8.10.2 through 8.14.0, with the dump and retry interceptors composed, a server that announced a longer body than it sent and then closed the connection made the default retry policy throw on a missing abort reason. The error was emitted on an internal client with no listener and terminated the process. Abort reasons are now propagated, and the default retry policy tolerates malformed errors.

CVE-2026-132045 / GHSA-gc94-vjfp-fm7x (low)

The cache interceptor trimmed Cache-Control and Vary header values with a regular expression that backtracks quadratically, so a single response with a long run of whitespace could block the event loop for about 100 to 200 ms at the default maxHeaderSize, and longer with a larger limit. Whitespace trimming now runs in linear time. The default fetch() and request paths were not affected.

CVE-2026-144348 / GHSA-qfv9-2fjm-5p4m (low)

ProxyAgent added the proxy credentials (from auth, token, or the username and password in the proxy URL) as a proxy-authorization entry directly on the headers object passed in its options, rather than on a copy. Any other agent holding the same object then sent those credentials to its own proxy, and they stayed in the application's object. EnvHttpProxyAgent passes one headers object to both the agent it creates for HTTP_PROXY and the one for HTTPS_PROXY, so when the headers option was set and the two variables named different proxies, one proxy received the other's credentials. Applications that do not set the headers option are not affected. ProxyAgent now copies the headers option before adding credentials, so each agent sends only its own credentials and the application's object is left unchanged.

What's Changed

New Contributors

Full Changelog: nodejs/undici@v8.14.0...v8.14.1

v8.14.0

Compare Source

What's Changed

New Contributors

Full Changelog: nodejs/undici@v8.13.1...v8.14.0


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/undici-8.x branch from fd7e07f to fce66f4 Compare December 4, 2026 12:58
@renovate renovate Bot changed the title chore(deps): update dependency undici to v8.14.0 chore(deps): update dependency undici to v8.14.1 Dec 4, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants