Skip to content

chore(deps): bump undici from 7.24.7 to 7.30.5 - #955

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/undici-7.30.5
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/undici-7.30.5

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Dec 5, 2026

Copy link
Copy Markdown
Contributor

Bumps undici from 7.24.7 to 7.30.5.

Release notes

Sourced from undici's releases.

v7.30.5

What's Changed

New Contributors

Full Changelog: nodejs/undici@v7.30.4...v7.30.5

v7.30.4

⚠️ 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-141997 / GHSA-h5rf-4xrf-76mc (high)

In undici 7.26.0 through 7.30.3, the HTTP/1.1 client asserted that the response parser was not paused when the connection ended. The parser is paused while the application applies backpressure to a response body, so a server that sent enough of a response to fill the body buffer and then closed or reset the connection triggered an AssertionError from a socket event listener, terminating the process. This affects request() and fetch(). A paused parser is now completed when the socket ends. The 8.x line was fixed in 8.4.1.

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 7.30.1 through 7.30.3 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)

An HTTP/2 session can hold an extended CONNECT request, such as a WebSocket handshake over HTTP/2 (allowH2: true), without opening a stream while it waits for the peer's SETTINGS. A malicious origin could withhold SETTINGS and repeatedly close the connection: undici reconnected and replayed the held request without limit, consuming CPU while the request never settled. A request held this way is now replayed at most once after the connection holding it goes away, and then fails.

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.

... (truncated)

Commits
  • e1d7ff7 Bumped v7.30.5 (#6327)
  • b8a3c76 fix: disable SIMD for RISC-V (#6326)
  • 23b8dac Bumped v7.30.4 (#6320)
  • b122581 fix(proxy-agent): don't write credentials into the caller's headers
  • 71bed0d fix(cache): reject background 304 revalidation with a mismatched ETag
  • 8e97eb8 fix(cache): don't refresh a stale entry when a background 304 changes Vary
  • 6485cf6 fix(cache): coalesce tiny body chunks to bound cache store overhead
  • a69d67a fix(cache): bypass the cache when the Host header names another authority
  • 2a3ff38 fix(env-http-proxy-agent): apply target TLS options on every route
  • 6046434 fix(redirect): record the origin a double-slash path was sent to
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Bumps [undici](https://github.com/nodejs/undici) from 7.24.7 to 7.30.5.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](nodejs/undici@v7.24.7...v7.30.5)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 7.30.5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot requested a review from devpow112 as a code owner December 5, 2026 14:48
@dependabot dependabot Bot added auto Opened by an automated process dependencies Pull request that updates a dependency file javascript Pull requests that update JavaScript code labels Dec 5, 2026
@coveralls

Copy link
Copy Markdown

Coverage Report for CI Build 47532580233

Coverage remained the same at 100.0%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 183
Covered Lines: 183
Line Coverage: 100.0%
Relevant Branches: 52
Covered Branches: 52
Branch Coverage: 100.0%
Branches in Coverage %: Yes
Coverage Strength: 112.01 hits per line

💛 - Coveralls

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

Labels

auto Opened by an automated process dependencies Pull request that updates a dependency file javascript Pull requests that update JavaScript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant