Skip to content

chore(deps): update dependency undici to v8 - #363

Merged
petebacondarwin merged 3 commits into
mainfrom
renovate/undici-8.x
Oct 20, 2026
Merged

petebacondarwin merged 3 commits into
mainfrom
renovate/undici-8.x

Conversation

@ant-release-bot

Copy link
Copy Markdown
Collaborator

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
undici (source) 7.30.1 → 8.12.2 age confidence

Warning

Some dependencies could not be looked up. Check the warning logs for more information.


Release Notes

nodejs/undici (undici)

v8.12.2

Compare Source

Security fixes
High severity
Denial of service via TLS 1.2 certificate-changing renegotiation

CVE-2026-87018 · GHSA-qrxm-fqhp-jwvm

A malicious or compromised HTTPS server could crash the Node.js process by initiating TLS 1.2 renegotiation and presenting a different, CA-trusted certificate whose hostname did not match the requested host. The resulting socket error reached an assertion in undici's HTTP/1.1 and HTTP/2 connection handling. This release handles post-connect certificate errors without terminating the process.

TLS certificate validation bypass through dropped Agent options

CVE-2026-109383 · GHSA-2m5v-pch6-74hx

Agent used a JSON-based clone for constructor options, which silently removed function-valued TLS options such as checkServerIdentity. Applications relying on custom certificate or public-key verification could therefore accept a certificate that the callback was intended to reject. This release preserves TLS options when creating per-origin dispatchers.

Cache poisoning and cross-user disclosure through cross-origin redirects

CVE-2026-109829 · GHSA-4w7w-5xrc-9h26

When an originless Agent combined redirect and shared-cache interceptors as compose(redirect(), cache()), a response from a cross-origin redirect could be stored under the original URL. This could allow persistent cache poisoning or disclosure of user-specific responses to later callers. This release verifies the response origin before caching and preserves redirect-hop cache-control policy.

Denial of service through excessive Content-Encoding values

CVE-2026-109869 · GHSA-xjj6-f33q-929c

A malicious HTTP server could crash the Node.js process by returning more than five content codings and closing the connection before sending the body. Although fetch() rejected the response, an error from an orphaned internal stream could remain unhandled. This release validates the content-encoding chain before creating the body stream and aborts oversized chains safely.

Medium severity
Denial of service through the decompress interceptor

CVE-2026-87029 · GHSA-55wc-3pg8-jfw6

An exception thrown by a downstream response handler from an asynchronous decompression callback could escape as an uncaught exception. A server could trigger this when decompress was composed with a handler such as dump with a size limit. This release converts downstream handler exceptions into per-request errors.

Subresource Integrity bypass with non-lowercase algorithm tokens

CVE-2026-109841 · GHSA-f72v-6w45-q472

fetch() treated valid mixed-case or uppercase SRI algorithm tokens, such as SHA256, as unknown and could accept a response whose body did not match the configured digest. This release normalizes algorithm tokens before validation and digest selection.

Denial of service through unbounded EventSource parser state

CVE-2026-109924 · GHSA-4qv8-2p9j-2685

A malicious Server-Sent Events endpoint could exhaust process memory by sending many tiny data: fields without completing an event, or by splitting an unfinished line across many chunks. This release bounds retained EventSource parser state, including field counts, buffered chunks, unfinished-line length, and retained field data.

Denial of service through unbounded automatic WebSocket PONG buffering

CVE-2026-109932 · GHSA-9fm3-97px-rjf6

A malicious WebSocket server could exhaust process memory by flooding the client with PING frames while not reading the automatic PONG responses. undici previously ignored socket backpressure and allowed the outbound queue to grow without bound. This release pauses frame parsing when PONG writes encounter backpressure and resumes after the socket drains.

Full Changelog: nodejs/undici@v8.12.1...v8.12.2

v8.12.1

Compare Source

What's Changed
New Contributors

Full Changelog: nodejs/undici@v8.12.0...v8.12.1

v8.12.0

Compare Source

What's Changed
New Contributors

Full Changelog: nodejs/undici@v8.11.2...v8.12.0

v8.11.2

Compare Source

What's Changed
New Contributors

Full Changelog: nodejs/undici@v8.11.1...v8.11.2

v8.11.1

Compare Source

What's Changed

Full Changelog: nodejs/undici@v8.11.0...v8.11.1

v8.11.0

Compare Source

What's Changed
New Contributors

Full Changelog: nodejs/undici@v8.10.2...v8.11.0

v8.10.2

Compare Source

⚠️ Security fixes
High severity
  • GHSA-vp8m-p9jh-q5pm: cache and deduplication interceptors could use caller-controlled request metadata instead of the authoritative dispatcher origin, enabling cross-origin cache poisoning and data disclosure. Undici now derives interceptor identities from the dispatcher origin and bypasses origin-dependent interceptors when no authoritative origin exists. Fixed by caf6194d.
  • GHSA-w293-vg96-wgc3: BalancedPool could drop function-valued connection options while cloning its configuration, including custom TLS certificate validation callbacks. Undici now preserves connect and legacy tls options when creating upstreams. Fixed by 8f5868fb.
  • GHSA-rfgv-xxqx-mfg5: a WebSocket server could select a subprotocol when none was requested, causing an uncaught TypeError that could terminate the process. Undici now rejects the handshake with protocol error 1002. Fixed by 66e12816.
Medium severity
  • GHSA-3wwx-pv8p-q78v: a malformed permessage-deflate payload exceeding the configured decompression limit could emit an unhandled zlib error and terminate the process. Undici now destroys the inflater after reaching the limit. Fixed by 4411a238.
  • GHSA-rx4f-c7p8-82vq: an unclean WebSocketStream close could create an unobserved rejected promise when its writable stream was locked, potentially terminating the process. Undici now propagates the failure through the retained writable stream controller. Fixed by 662d0ea6.
  • GHSA-2jfj-6hjv-fm6j: shared caches could store and replay responses containing Set-Cookie, disclosing one user's cookies to another caller. Undici now excludes these responses from shared caches, including existing entries and revalidation paths. Fixed by cb75bbb3.
  • GHSA-3xpg-4rpp-hhhm: the decompression interceptor did not bound decoded output, allowing compressed responses to consume excessive memory. Undici now limits every decompression stage to 64 MiB by default and supports a configurable maxSize. Fixed by 7aac7f12.
  • GHSA-pmjh-fq2x-6v4x: a terminal retry failure after response headers were exposed could orphan the original response body, causing consumers to hang indefinitely. Undici now propagates the terminal error to the exposed body. Fixed by e905b5b8.
Low severity
  • GHSA-8436-99hf-9mmv: cache interceptors could store and replay responses to unsafe HTTP methods such as POST or DELETE. Undici now restricts cache reads and writes to safe methods while preserving invalidation by successful unsafe requests. Fixed by 2be07bf9.
  • GHSA-2gqq-gqf2-x968: the dump interceptor could treat an oversized chunked response as successfully truncated when no Content-Length was present. Undici now enforces maxSize against received bytes and aborts oversized responses. Fixed by 6d583124.
  • GHSA-r53p-7pc4-xj5r: the retry interceptor could concatenate a resumed response with inconsistent framing into downstream output, enabling response splitting or corruption. Undici now validates Content-Range against the original response framing before resuming. Fixed by 0160a719.
What's Changed
New Contributors

Full Changelog: nodejs/undici@v8.10.1...v8.10.2

v8.10.1

Compare Source

What's Changed
New Contributors

Full Changelog: nodejs/undici@v8.10.0...v8.10.1

v8.10.0

Compare Source

What's Changed
New Contributors

Full Changelog: nodejs/undici@v8.9.0...v8.10.0

v8.9.0

Compare Source

⚠️ Security fixes
High severity
  • GHSA-4cwx-7wf7-3272: malformed qualified private Cache-Control directives could cause cross-user information disclosure in shared caches or a parse-time crash. T

❗ Important

✂ PR body was truncated to here.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • "on monday"
  • 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 has been generated by Mend Renovate CLI.

@ant-release-bot ant-release-bot added the dependencies Pull requests that update a dependency file label Oct 19, 2026
@ant-release-bot ant-release-bot added the dependencies Pull requests that update a dependency file label Oct 19, 2026
@pkg-pr-new

pkg-pr-new Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/cf@363

commit: d0bae28

Comment thread packages/cli/package.json Resolved
@ask-bonk

ask-bonk Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Review: 1 findings.

Posted 1 inline finding.

github run

@github-actions

github-actions Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

cf --help startup

mean stddev min max
PR 277.6 ms 4.7 ms 269.5 ms 286.3 ms
base 274.6 ms 4.8 ms 266.8 ms 281.0 ms

Δ (PR vs base): ↑ +3.0 ms (+1.1%)

Measured with hyperfine on ubuntu-latest (3 warmup runs, 20 timed runs). CI numbers carry ±a few ms of runner jitter; treat small deltas as noise.

@clanky-the-clanker

clanky-the-clanker Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

💬 Approved with comments — The undici 7.30.1 → 8.12.2 bump is a devDependency used only in tests and is pinned consistently in both packages. One INFO item: the new Node engine range is a closed set that drops future Node majors, and this user-facing change goes beyond what the dependency-bump title describes.

Findings: 1 info

The decision is advisory: this comment never approves, blocks or requests changes on the pull request.

🔧 Fix with your agent

Paste the following into your coding agent to investigate and fix these issues.

Fix the following code review issues found in pull request #363.

Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
  for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

## INFO (1)

### [Code Quality] The engine range narrows the published `cf` package from `>=22` to `^22.23.0 || ^24.22.0 || ^26.12.0`, which drops Node 27+. The changeset says this is intentional, but it is a user-facing policy change in a pull request titled as a dependency bump. Confirm that excluding future majors is intended.
- **File:** packages/cli/package.json:112

📋 Code Quality: 💬 1 info

The undici bump is clean. One INFO item: the new closed engine range excludes Node 27+ and narrows the published cf package from >=22.

Recommendation: 💬 Optional Nits

  • [INFO] The engine range narrows the published cf package from >=22 to ^22.23.0 || ^24.22.0 || ^26.12.0, which drops Node 27+. The changeset says this is intentional, but it is a user-facing policy change in a pull request titled as a dependency bump. Confirm that excluding future majors is intended. (packages/cli/package.json:112)
View full review

What changes

  • undici goes from 7.30.1 to 8.12.2, pinned exactly in packages/cli/package.json:106 and packages/wrangler-tests/package.json. Both packages use the same version, so you won't get two copies of undici installed side by side. In packages/cli it is a devDependency (the devDependencies block starts at line 78), so this bump does not change what the published cf package installs.
  • Undici is only used in test helpers: MockAgent, getGlobalDispatcher/setGlobalDispatcher, Request, and type imports. These APIs are stable in v8. The tests were not run as part of this review.
  • The engine ranges in root package.json:26 and packages/cli/package.json:112 move to ^22.23.0 || ^24.22.0 || ^26.12.0. A minor changeset (.changeset/modern-node-engines.md) covers this, as the repository's conventions require.
  • CI installs Node through .github/actions/install-dependencies/action.yml, which defaults to node-version: "22". Setup actions resolve that to the latest 22.x, so it should satisfy the new ^22.23.0 minimum.

Finding

  • [INFO] packages/cli/package.json:112 / package.json:26: the published cf engine range used to be open-ended (>=22). It is now a closed set of three majors, so Node 27 and later will fail engine checks or print warnings, even where cf would work. The changeset says this is a deliberate breaking change during the beta, so it is not a bug. Two things to note:
    • The pull request is titled as a dependency bump, but it also changes a user-facing support policy.
    • If dropping future majors is not intended, consider adding || >=27.0.0 or keeping an open >= bound on the newest major.

✅ All other checks passed

📝 Documentation: ✅ LGTM

The README updates (root and packages/cli/README.md) replace the outdated "Requires Node.js 22 or newer" with a pointer to package.json. That matches the new engine ranges, and the changeset explains the requirement clearly.


Reviewed commit: d0bae28f

@ask-bonk

ask-bonk Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

@ask-bonk

ask-bonk Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

LGTM

github run

@petebacondarwin
petebacondarwin added this pull request to the merge queue Oct 20, 2026
Merged via the queue into main with commit 1dc3664 Oct 20, 2026
12 checks passed
@petebacondarwin
petebacondarwin deleted the renovate/undici-8.x branch October 20, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants