Update dependency undici to v7.29.1 [SECURITY] #1

Merged
octoforge-admin merged 1 commit from renovate/npm-undici-vulnerability into main 2026-10-16 01:47:20 +00:00

This PR contains the following updates:

Package Type Update Change
undici (source) dependencies patch 7.29.0 → 7.29.1

undici vulnerable to response truncation via oversized chunked responses in the dump interceptor

CVE-2026-84947 / GHSA-2gqq-gqf2-x968

More information

Details

Impact

undici's interceptors.dump() reads and discards response bodies up to a configurable maxSize. When a response declares a Content-Length that exceeds maxSize, the request is aborted cleanly. When a response is sent chunked (no Content-Length) and its body exceeds maxSize, it is not aborted: the interceptor ends the response early once the accumulated size reaches maxSize, and continued delivery from the parser triggers an internal assertion that is caught and turned into a request abort and connection tear-down. The application observes a misleading 200 with an empty or truncated body while the connection is disconnected. Any application using the dump interceptor against untrusted or misbehaving upstreams is affected.

Patches

Upgrade to 7.29.1 or 8.10.2. The dump interceptor now enforces maxSize on both the declared and the received body size, aborting the request with a RequestAbortedError instead of returning a truncated response.

Workarounds

None. Avoid using interceptors.dump() with untrusted upstreams until upgraded.

Severity

  • CVSS Score: 3.7 / 10 (Low)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


CVE-2026-84933 / GHSA-2jfj-6hjv-fm6j

More information

Details

Impact

undici's interceptors.cache() does not handle Set-Cookie in the cache path. In shared-cache mode (type: 'shared', the default), a cacheable response (for example Cache-Control: public, max-age=...) carrying a Set-Cookie header is stored, and the stored Set-Cookie is re-served to a later caller that hits the same cache key. This exposes one user's cookie to another caller and lets an untrusted upstream inject cookies into cached responses served to all subsequent callers, violating RFC 6265 section 7.2 (a shared cache must not store cookies). Applications using the shared cache interceptor against untrusted or multi-user upstreams are affected. Private caches (type: 'private') are not affected.

Patches

Upgrade to 7.29.1 or 8.10.2. In shared-cache mode, undici no longer stores or re-serves responses containing Set-Cookie, including previously cached entries and revalidation paths.

Workarounds

Use a private cache (type: 'private') for per-user responses, or avoid caching responses that set cookies. Applications acting as shared caches should strip Set-Cookie from responses before caching.

Severity

  • CVSS Score: 6.5 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


undici vulnerable to Denial of Service via unhandled error in WebSocket permessage-deflate decompression

CVE-2026-85024 / GHSA-3wwx-pv8p-q78v

More information

Details

Impact

undici's WebSocket client (including Node.js's bundled globalThis.WebSocket) crashes the entire Node.js process when a remote WebSocket peer sends a permessage-deflate compressed message that crosses the decompressed-payload size limit and then contains a malformed DEFLATE block. In lib/web/websocket/permessage-deflate.js, the size-limit cleanup calls removeAllListeners() on the internal zlib InflateRaw, removing its error listener, but leaves the stream running. The inflater then emits a Z_DATA_ERROR with no listener attached, which Node.js treats as a fatal unhandled error event and terminates the process. Application error/close handlers on the public WebSocket cannot observe or prevent this, because the failing object is the internal InflateRaw.

A malicious or compromised WebSocket server can crash a client with a single connection, unauthenticated and without any application mistake. The attack is asymmetric (about 130 KB on the wire expands past the limit) and can be repeated on reconnect (crash loop).

Affected applications are those using the undici WebSocket client (new WebSocket(...)) or Node.js's bundled globalThis.WebSocket that can be induced to connect to an attacker-controlled or compromised WebSocket endpoint.

Patches

Upgrade to undici v6.28.1, v7.29.1 or v8.10.2.

Workarounds

No workaround is available.

Severity

  • CVSS Score: 5.9 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


undici vulnerable to Denial of Service via unbounded decompression of compressed responses

CVE-2026-84890 / GHSA-3xpg-4rpp-hhhm

More information

Details

Impact

The interceptors.decompress() interceptor decompresses HTTP response bodies according to the untrusted Content-Encoding header. The number of decompression layers is capped at 5, but the total decompressed output size is not bounded and there is no option to limit it. A malicious or faulty upstream can return a small compressed payload (a compression bomb) that expands to hundreds of megabytes or gigabytes in client memory, exhausting memory and causing the Node.js process to crash or become unresponsive. Any application using the decompress interceptor to read responses from untrusted or compromised upstreams is affected.

Patches

Upgrade to 7.29.1 or 8.10.2. The interceptor now accepts a maxSize option (default 64 MiB) and rejects responses whose decompressed output exceeds it with a ResponseExceededMaxSizeError.

Workarounds

Once upgraded, set a conservative maxSize on the interceptor. Before upgrading, avoid using interceptors.decompress() with untrusted upstreams, or apply a custom interceptor that enforces a decompressed output size limit.

Severity

  • CVSS Score: 5.9 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


undici vulnerable to caching and replay of unsafe HTTP method responses

CVE-2026-85008 / GHSA-8436-99hf-9mmv

More information

Details

Impact

undici's interceptors.cache() documents that it caches only safe HTTP methods. However, its internal skip-list is built by subtracting the configured methods from the safe-methods set, so an unsafe method (POST, PUT, PATCH, DELETE) never lands in the skip-list and is looked up against the cache store. Combined with the storage gate (canCacheResponse) having no method check, a heuristically-cacheable response (for example a 404) with an explicit Cache-Control: max-age=... to an unsafe method is stored and replayed on a subsequent identical request. The application's state-changing request never reaches the origin, and undici serves a fabricated response from the cache instead. This occurs with the default configuration (methods: ['GET']), which the public API does not allow widening to unsafe methods, so no application misuse is required; an untrusted origin can trigger it purely through its own response headers.

Patches

Upgrade to 7.29.1 or 8.10.2. The cache interceptor no longer reads from or writes to the cache for unsafe HTTP methods, while still invalidating existing cache entries on successful unsafe requests.

Workarounds

None.

Severity

  • CVSS Score: 3.7 / 10 (Low)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


undici vulnerable to Denial of Service via orphaned RetryHandler response body

CVE-2026-18149 / GHSA-pmjh-fq2x-6v4x

More information

Details

Impact

undici's RetryHandler can leave a response body pending indefinitely. When a retried request receives a non-retryable response after a truncated one, the original response.body held by the application is never settled, so reads such as response.body.text() hang and bodyTimeout does not fire. A malicious server can repeat this to accumulate pending promises and streams, leading to denial of service.

Patches

Patched in undici v7.29.1 and v8.10.2.

Workarounds

Impose an independent request deadline and destroy the response body when it expires. bodyTimeout alone does not prevent this.

Severity

  • CVSS Score: 5.9 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


undici vulnerable to downstream response splitting via retry interceptor

CVE-2026-18540 / GHSA-r53p-7pc4-xj5r

More information

Details

Impact

Undici's interceptors.retry() can resume a request after a partial response and append the resumed bytes to an already partially delivered body, while the application still receives the original response's status and headers. When that response carried a Content-Length, the application can receive a longer body. Applications that forward Undici's status, headers, and body downstream without recalculating framing, for example proxy or gateway applications, may emit a response whose body exceeds the forwarded Content-Length, and the excess bytes can be read as the start of a subsequent HTTP response (downstream response splitting or desynchronization).

For example, a 404 Not Found with Content-Length: 2 that sends one byte then closes can be resumed with an open-ended Range request, and the resumed 206 Partial Content bytes are appended, so the application receives more than two body bytes while still seeing Content-Length: 2. The bug requires interceptors.retry() enabled, an attacker-controlled or faulty upstream, and a downstream forwarder that does not recalculate Content-Length.

Patches

Patched in undici v6.28.1, v7.29.1, and v8.10.2. Upgrade to one of these or later.

Workarounds
  • Disable interceptors.retry() for untrusted upstreams, or set maxRetries: 0.
  • Remove or recalculate Content-Length before forwarding a response body assembled by Undici.

Severity

  • CVSS Score: 3.7 / 10 (Low)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


undici vulnerable to Denial of Service via unrequested WebSocket subprotocol

CVE-2026-19534 / GHSA-rfgv-xxqx-mfg5

More information

Details

Impact

The undici WebSocket client throws an uncaught TypeError during the opening handshake when a server's 101 response includes a Sec-WebSocket-Protocol header that the client never requested. The throw occurs in a queueMicrotask callback with no surrounding try/catch, so it propagates as an uncaught exception and terminates the Node.js process. This is a remote, unauthenticated denial of service against any application that opens a WebSocket to an attacker controlled or compromised server, or over a plaintext ws:// connection subject to a machine-in-the-middle. It affects the default new WebSocket(url) usage, where no subprotocol is requested. Per RFC 6455 section 4.1, an unrequested subprotocol must fail the connection, not crash it.

All releases starting at undici 6.7.0 are affected.

Patches

Upgrade to undici 6.28.1, 7.29.1, or 8.10.2.

Workarounds

No workaround is available. The fix must be applied through an upgrade.

Severity

  • CVSS Score: 7.5 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


undici vulnerable to Denial of Service via WebSocketStream unclean close

CVE-2026-85014 / GHSA-rx4f-c7p8-82vq

More information

Details

Impact

undici's WebSocketStream crashes the client process when a WebSocket connection is closed abruptly without a close handshake. On such an unclean close, the internal socket-close handler calls abort() on the writable stream even when the application holds a writer lock. Per the WHATWG Streams standard, aborting a locked stream returns a promise that rejects with a TypeError, and the handler discards that promise. The unobserved rejection surfaces as an unhandledRejection and, under Node.js's default behavior, terminates the process.

A malicious or compromised WebSocket server can crash a client with a single connection teardown (a TCP reset, a proxy teardown, or a protocol-violating frame). Affected applications are those using the WebSocketStream API and writing through a writer, which is the standard way to write.

All releases from undici 7.0.0 are affected. WebSocketStream was introduced in 7.0.0.

Patches

Upgrade to undici v7.29.1 or v8.10.2.

Workarounds

No workaround is available.

Severity

  • CVSS Score: 5.9 / 10 (Medium)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).


undici vulnerable to TLS certificate validation bypass via dropped connect options in BalancedPool

CVE-2026-84961 / GHSA-w293-vg96-wgc3

More information

Details

Impact

undici's BalancedPool passes its constructor options through a JSON-based deep clone (JSON.parse(JSON.stringify(...))) before forwarding them to each per-upstream Pool. JSON cannot represent functions, so a caller-supplied connect or tls option containing a checkServerIdentity callback (or a custom connector function) is silently dropped before it reaches the TLS layer. As a result, a TLS peer whose certificate a custom checkServerIdentity was written to reject, but which passes Node's default hostname and chain checks, is silently accepted when the request is made through BalancedPool. Client, Pool, Agent, and RoundRobinPool destructure connect/tls before the clone and are not affected. Only applications that use BalancedPool with a function-valued connect/tls option (such as a custom checkServerIdentity or connector) are affected.

Patches

Upgrade to 7.29.1 or 8.10.2. BalancedPool now preserves the connect and tls options outside the JSON clone, so custom TLS verification callbacks are forwarded to each upstream unchanged.

Workarounds

Use Client, Pool, or Agent instead of BalancedPool for connections that rely on a custom checkServerIdentity or connector, until upgraded.

Severity

  • CVSS Score: 7.4 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

References

This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).

❗ Important

Release Notes retrieval for this PR were skipped because no github.com credentials were available.
If you are self-hosted, please see this instruction.


Configuration

📅 Schedule: (in timezone Europe/Berlin)

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

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, 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.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [undici](https://undici.nodejs.org) ([source](https://github.com/nodejs/undici)) | dependencies | patch | [`7.29.0` → `7.29.1`](https://renovatebot.com/diffs/npm/undici/7.29.0/7.29.1) | --- ### undici vulnerable to response truncation via oversized chunked responses in the dump interceptor [CVE-2026-84947](https://nvd.nist.gov/vuln/detail/CVE-2026-84947) / [GHSA-2gqq-gqf2-x968](https://github.com/advisories/GHSA-2gqq-gqf2-x968) <details> <summary>More information</summary> #### Details ##### Impact undici's `interceptors.dump()` reads and discards response bodies up to a configurable `maxSize`. When a response declares a `Content-Length` that exceeds `maxSize`, the request is aborted cleanly. When a response is sent chunked (no `Content-Length`) and its body exceeds `maxSize`, it is not aborted: the interceptor ends the response early once the accumulated size reaches `maxSize`, and continued delivery from the parser triggers an internal assertion that is caught and turned into a request abort and connection tear-down. The application observes a misleading `200` with an empty or truncated body while the connection is disconnected. Any application using the dump interceptor against untrusted or misbehaving upstreams is affected. ##### Patches Upgrade to `7.29.1` or `8.10.2`. The dump interceptor now enforces `maxSize` on both the declared and the received body size, aborting the request with a `RequestAbortedError` instead of returning a truncated response. ##### Workarounds None. Avoid using `interceptors.dump()` with untrusted upstreams until upgraded. #### Severity - CVSS Score: 3.7 / 10 (Low) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-2gqq-gqf2-x968](https://github.com/nodejs/undici/security/advisories/GHSA-2gqq-gqf2-x968) - [https://nvd.nist.gov/vuln/detail/CVE-2026-84947](https://nvd.nist.gov/vuln/detail/CVE-2026-84947) - [https://github.com/nodejs/undici/commit/21693f406f0142f3504192e9f9b022dcf84782ae](https://github.com/nodejs/undici/commit/21693f406f0142f3504192e9f9b022dcf84782ae) - [https://github.com/nodejs/undici/commit/6d583124e7cf60b640097d64144ed633cc450584](https://github.com/nodejs/undici/commit/6d583124e7cf60b640097d64144ed633cc450584) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/nodejs/undici](https://github.com/nodejs/undici) - [https://github.com/nodejs/undici/releases/tag/v7.29.1](https://github.com/nodejs/undici/releases/tag/v7.29.1) - [https://github.com/nodejs/undici/releases/tag/v8.10.2](https://github.com/nodejs/undici/releases/tag/v8.10.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-2gqq-gqf2-x968) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared caches [CVE-2026-84933](https://nvd.nist.gov/vuln/detail/CVE-2026-84933) / [GHSA-2jfj-6hjv-fm6j](https://github.com/advisories/GHSA-2jfj-6hjv-fm6j) <details> <summary>More information</summary> #### Details ##### Impact undici's `interceptors.cache()` does not handle `Set-Cookie` in the cache path. In shared-cache mode (`type: 'shared'`, the default), a cacheable response (for example `Cache-Control: public, max-age=...`) carrying a `Set-Cookie` header is stored, and the stored `Set-Cookie` is re-served to a later caller that hits the same cache key. This exposes one user's cookie to another caller and lets an untrusted upstream inject cookies into cached responses served to all subsequent callers, violating RFC 6265 section 7.2 (a shared cache must not store cookies). Applications using the shared cache interceptor against untrusted or multi-user upstreams are affected. Private caches (`type: 'private'`) are not affected. ##### Patches Upgrade to `7.29.1` or `8.10.2`. In shared-cache mode, undici no longer stores or re-serves responses containing `Set-Cookie`, including previously cached entries and revalidation paths. ##### Workarounds Use a private cache (`type: 'private'`) for per-user responses, or avoid caching responses that set cookies. Applications acting as shared caches should strip `Set-Cookie` from responses before caching. #### Severity - CVSS Score: 6.5 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-2jfj-6hjv-fm6j](https://github.com/nodejs/undici/security/advisories/GHSA-2jfj-6hjv-fm6j) - [https://nvd.nist.gov/vuln/detail/CVE-2026-84933](https://nvd.nist.gov/vuln/detail/CVE-2026-84933) - [https://github.com/nodejs/undici/commit/b6c5a00252c37da9dd2db9bead053bb843e1f988](https://github.com/nodejs/undici/commit/b6c5a00252c37da9dd2db9bead053bb843e1f988) - [https://github.com/nodejs/undici/commit/cb75bbb34224a968b4ad80cab8b7aba5e0b3b28a](https://github.com/nodejs/undici/commit/cb75bbb34224a968b4ad80cab8b7aba5e0b3b28a) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/nodejs/undici](https://github.com/nodejs/undici) - [https://github.com/nodejs/undici/releases/tag/v7.29.1](https://github.com/nodejs/undici/releases/tag/v7.29.1) - [https://github.com/nodejs/undici/releases/tag/v8.10.2](https://github.com/nodejs/undici/releases/tag/v8.10.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-2jfj-6hjv-fm6j) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to Denial of Service via unhandled error in WebSocket permessage-deflate decompression [CVE-2026-85024](https://nvd.nist.gov/vuln/detail/CVE-2026-85024) / [GHSA-3wwx-pv8p-q78v](https://github.com/advisories/GHSA-3wwx-pv8p-q78v) <details> <summary>More information</summary> #### Details ##### Impact undici's WebSocket client (including Node.js's bundled `globalThis.WebSocket`) crashes the entire Node.js process when a remote WebSocket peer sends a permessage-deflate compressed message that crosses the decompressed-payload size limit and then contains a malformed DEFLATE block. In `lib/web/websocket/permessage-deflate.js`, the size-limit cleanup calls `removeAllListeners()` on the internal zlib `InflateRaw`, removing its `error` listener, but leaves the stream running. The inflater then emits a `Z_DATA_ERROR` with no listener attached, which Node.js treats as a fatal unhandled `error` event and terminates the process. Application `error`/`close` handlers on the public WebSocket cannot observe or prevent this, because the failing object is the internal `InflateRaw`. A malicious or compromised WebSocket server can crash a client with a single connection, unauthenticated and without any application mistake. The attack is asymmetric (about 130 KB on the wire expands past the limit) and can be repeated on reconnect (crash loop). Affected applications are those using the undici WebSocket client (`new WebSocket(...)`) or Node.js's bundled `globalThis.WebSocket` that can be induced to connect to an attacker-controlled or compromised WebSocket endpoint. ##### Patches Upgrade to undici v6.28.1, v7.29.1 or v8.10.2. ##### Workarounds No workaround is available. #### Severity - CVSS Score: 5.9 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-3wwx-pv8p-q78v](https://github.com/nodejs/undici/security/advisories/GHSA-3wwx-pv8p-q78v) - [https://nvd.nist.gov/vuln/detail/CVE-2026-85024](https://nvd.nist.gov/vuln/detail/CVE-2026-85024) - [https://github.com/nodejs/undici/commit/07c60d9c7099a910451244afe42861bbdbdd974c](https://github.com/nodejs/undici/commit/07c60d9c7099a910451244afe42861bbdbdd974c) - [https://github.com/nodejs/undici/commit/4411a238a98e8791da5fff10cc9e3578a7668ed6](https://github.com/nodejs/undici/commit/4411a238a98e8791da5fff10cc9e3578a7668ed6) - [https://github.com/nodejs/undici/commit/63cf698b611fecc6ee0a17b185b930051e4b982f](https://github.com/nodejs/undici/commit/63cf698b611fecc6ee0a17b185b930051e4b982f) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/nodejs/undici](https://github.com/nodejs/undici) - [https://github.com/nodejs/undici/releases/tag/v6.28.1](https://github.com/nodejs/undici/releases/tag/v6.28.1) - [https://github.com/nodejs/undici/releases/tag/v7.29.1](https://github.com/nodejs/undici/releases/tag/v7.29.1) - [https://github.com/nodejs/undici/releases/tag/v8.10.2](https://github.com/nodejs/undici/releases/tag/v8.10.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-3wwx-pv8p-q78v) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to Denial of Service via unbounded decompression of compressed responses [CVE-2026-84890](https://nvd.nist.gov/vuln/detail/CVE-2026-84890) / [GHSA-3xpg-4rpp-hhhm](https://github.com/advisories/GHSA-3xpg-4rpp-hhhm) <details> <summary>More information</summary> #### Details ##### Impact The `interceptors.decompress()` interceptor decompresses HTTP response bodies according to the untrusted `Content-Encoding` header. The number of decompression layers is capped at 5, but the total decompressed output size is not bounded and there is no option to limit it. A malicious or faulty upstream can return a small compressed payload (a compression bomb) that expands to hundreds of megabytes or gigabytes in client memory, exhausting memory and causing the Node.js process to crash or become unresponsive. Any application using the decompress interceptor to read responses from untrusted or compromised upstreams is affected. ##### Patches Upgrade to `7.29.1` or `8.10.2`. The interceptor now accepts a `maxSize` option (default 64 MiB) and rejects responses whose decompressed output exceeds it with a `ResponseExceededMaxSizeError`. ##### Workarounds Once upgraded, set a conservative `maxSize` on the interceptor. Before upgrading, avoid using `interceptors.decompress()` with untrusted upstreams, or apply a custom interceptor that enforces a decompressed output size limit. #### Severity - CVSS Score: 5.9 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-3xpg-4rpp-hhhm](https://github.com/nodejs/undici/security/advisories/GHSA-3xpg-4rpp-hhhm) - [https://nvd.nist.gov/vuln/detail/CVE-2026-84890](https://nvd.nist.gov/vuln/detail/CVE-2026-84890) - [https://github.com/nodejs/undici/commit/2c7d7e1227043c644c4c32cfd1e276f4fd4fcb11](https://github.com/nodejs/undici/commit/2c7d7e1227043c644c4c32cfd1e276f4fd4fcb11) - [https://github.com/nodejs/undici/commit/7aac7f12f757844763c8b8f1ab6e305e80d55838](https://github.com/nodejs/undici/commit/7aac7f12f757844763c8b8f1ab6e305e80d55838) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/nodejs/undici](https://github.com/nodejs/undici) - [https://github.com/nodejs/undici/releases/tag/v7.29.1](https://github.com/nodejs/undici/releases/tag/v7.29.1) - [https://github.com/nodejs/undici/releases/tag/v8.10.2](https://github.com/nodejs/undici/releases/tag/v8.10.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-3xpg-4rpp-hhhm) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to caching and replay of unsafe HTTP method responses [CVE-2026-85008](https://nvd.nist.gov/vuln/detail/CVE-2026-85008) / [GHSA-8436-99hf-9mmv](https://github.com/advisories/GHSA-8436-99hf-9mmv) <details> <summary>More information</summary> #### Details ##### Impact undici's `interceptors.cache()` documents that it caches only safe HTTP methods. However, its internal skip-list is built by subtracting the configured methods from the safe-methods set, so an unsafe method (`POST`, `PUT`, `PATCH`, `DELETE`) never lands in the skip-list and is looked up against the cache store. Combined with the storage gate (`canCacheResponse`) having no method check, a heuristically-cacheable response (for example a `404`) with an explicit `Cache-Control: max-age=...` to an unsafe method is stored and replayed on a subsequent identical request. The application's state-changing request never reaches the origin, and undici serves a fabricated response from the cache instead. This occurs with the default configuration (`methods: ['GET']`), which the public API does not allow widening to unsafe methods, so no application misuse is required; an untrusted origin can trigger it purely through its own response headers. ##### Patches Upgrade to `7.29.1` or `8.10.2`. The cache interceptor no longer reads from or writes to the cache for unsafe HTTP methods, while still invalidating existing cache entries on successful unsafe requests. ##### Workarounds None. #### Severity - CVSS Score: 3.7 / 10 (Low) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-8436-99hf-9mmv](https://github.com/nodejs/undici/security/advisories/GHSA-8436-99hf-9mmv) - [https://nvd.nist.gov/vuln/detail/CVE-2026-85008](https://nvd.nist.gov/vuln/detail/CVE-2026-85008) - [https://github.com/nodejs/undici/commit/2be07bf97b3022e0324142d31f99f6e019d815e3](https://github.com/nodejs/undici/commit/2be07bf97b3022e0324142d31f99f6e019d815e3) - [https://github.com/nodejs/undici/commit/b61d9432bac7caac51273ad209862e4c0bf935ae](https://github.com/nodejs/undici/commit/b61d9432bac7caac51273ad209862e4c0bf935ae) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/nodejs/undici](https://github.com/nodejs/undici) - [https://github.com/nodejs/undici/releases/tag/v7.29.1](https://github.com/nodejs/undici/releases/tag/v7.29.1) - [https://github.com/nodejs/undici/releases/tag/v8.10.2](https://github.com/nodejs/undici/releases/tag/v8.10.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-8436-99hf-9mmv) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to Denial of Service via orphaned RetryHandler response body [CVE-2026-18149](https://nvd.nist.gov/vuln/detail/CVE-2026-18149) / [GHSA-pmjh-fq2x-6v4x](https://github.com/advisories/GHSA-pmjh-fq2x-6v4x) <details> <summary>More information</summary> #### Details ##### Impact undici's `RetryHandler` can leave a response body pending indefinitely. When a retried request receives a non-retryable response after a truncated one, the original `response.body` held by the application is never settled, so reads such as `response.body.text()` hang and `bodyTimeout` does not fire. A malicious server can repeat this to accumulate pending promises and streams, leading to denial of service. ##### Patches Patched in undici v7.29.1 and v8.10.2. ##### Workarounds Impose an independent request deadline and destroy the response body when it expires. `bodyTimeout` alone does not prevent this. #### Severity - CVSS Score: 5.9 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-pmjh-fq2x-6v4x](https://github.com/nodejs/undici/security/advisories/GHSA-pmjh-fq2x-6v4x) - [https://nvd.nist.gov/vuln/detail/CVE-2026-18149](https://nvd.nist.gov/vuln/detail/CVE-2026-18149) - [https://github.com/nodejs/undici/commit/3c6726599cea8646384dde846c97d630da472a74](https://github.com/nodejs/undici/commit/3c6726599cea8646384dde846c97d630da472a74) - [https://github.com/nodejs/undici/commit/e905b5b87e6953bcc542af90557b2fee5b7b5974](https://github.com/nodejs/undici/commit/e905b5b87e6953bcc542af90557b2fee5b7b5974) - [https://hackerone.com/reports/3892751](https://hackerone.com/reports/3892751) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/nodejs/undici](https://github.com/nodejs/undici) - [https://github.com/nodejs/undici/releases/tag/v7.29.1](https://github.com/nodejs/undici/releases/tag/v7.29.1) - [https://github.com/nodejs/undici/releases/tag/v8.10.2](https://github.com/nodejs/undici/releases/tag/v8.10.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-pmjh-fq2x-6v4x) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to downstream response splitting via retry interceptor [CVE-2026-18540](https://nvd.nist.gov/vuln/detail/CVE-2026-18540) / [GHSA-r53p-7pc4-xj5r](https://github.com/advisories/GHSA-r53p-7pc4-xj5r) <details> <summary>More information</summary> #### Details ##### Impact Undici's `interceptors.retry()` can resume a request after a partial response and append the resumed bytes to an already partially delivered body, while the application still receives the original response's status and headers. When that response carried a `Content-Length`, the application can receive a longer body. Applications that forward Undici's status, headers, and body downstream without recalculating framing, for example proxy or gateway applications, may emit a response whose body exceeds the forwarded `Content-Length`, and the excess bytes can be read as the start of a subsequent HTTP response (downstream response splitting or desynchronization). For example, a `404 Not Found` with `Content-Length: 2` that sends one byte then closes can be resumed with an open-ended `Range` request, and the resumed `206 Partial Content` bytes are appended, so the application receives more than two body bytes while still seeing `Content-Length: 2`. The bug requires `interceptors.retry()` enabled, an attacker-controlled or faulty upstream, and a downstream forwarder that does not recalculate `Content-Length`. ##### Patches Patched in undici v6.28.1, v7.29.1, and v8.10.2. Upgrade to one of these or later. ##### Workarounds - Disable `interceptors.retry()` for untrusted upstreams, or set `maxRetries: 0`. - Remove or recalculate `Content-Length` before forwarding a response body assembled by Undici. #### Severity - CVSS Score: 3.7 / 10 (Low) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-r53p-7pc4-xj5r](https://github.com/nodejs/undici/security/advisories/GHSA-r53p-7pc4-xj5r) - [https://nvd.nist.gov/vuln/detail/CVE-2026-18540](https://nvd.nist.gov/vuln/detail/CVE-2026-18540) - [https://github.com/nodejs/undici/commit/0160a719063fb0a77f4fdf9500b9166b91e14329](https://github.com/nodejs/undici/commit/0160a719063fb0a77f4fdf9500b9166b91e14329) - [https://github.com/nodejs/undici/commit/cd8af90b38ae33c2838d54a2d629774122effe95](https://github.com/nodejs/undici/commit/cd8af90b38ae33c2838d54a2d629774122effe95) - [https://github.com/nodejs/undici/commit/ce31bc824b578008faae5d3350da66c1b5f71548](https://github.com/nodejs/undici/commit/ce31bc824b578008faae5d3350da66c1b5f71548) - [https://hackerone.com/reports/3900104](https://hackerone.com/reports/3900104) - [https://hackerone.com/reports/3900615](https://hackerone.com/reports/3900615) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/nodejs/undici](https://github.com/nodejs/undici) - [https://github.com/nodejs/undici/releases/tag/v6.28.1](https://github.com/nodejs/undici/releases/tag/v6.28.1) - [https://github.com/nodejs/undici/releases/tag/v7.29.1](https://github.com/nodejs/undici/releases/tag/v7.29.1) - [https://github.com/nodejs/undici/releases/tag/v8.10.2](https://github.com/nodejs/undici/releases/tag/v8.10.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-r53p-7pc4-xj5r) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to Denial of Service via unrequested WebSocket subprotocol [CVE-2026-19534](https://nvd.nist.gov/vuln/detail/CVE-2026-19534) / [GHSA-rfgv-xxqx-mfg5](https://github.com/advisories/GHSA-rfgv-xxqx-mfg5) <details> <summary>More information</summary> #### Details ##### Impact The undici WebSocket client throws an uncaught `TypeError` during the opening handshake when a server's `101` response includes a `Sec-WebSocket-Protocol` header that the client never requested. The throw occurs in a `queueMicrotask` callback with no surrounding `try`/`catch`, so it propagates as an uncaught exception and terminates the Node.js process. This is a remote, unauthenticated denial of service against any application that opens a WebSocket to an attacker controlled or compromised server, or over a plaintext `ws://` connection subject to a machine-in-the-middle. It affects the default `new WebSocket(url)` usage, where no subprotocol is requested. Per RFC 6455 section 4.1, an unrequested subprotocol must fail the connection, not crash it. All releases starting at undici 6.7.0 are affected. ##### Patches Upgrade to undici 6.28.1, 7.29.1, or 8.10.2. ##### Workarounds No workaround is available. The fix must be applied through an upgrade. #### Severity - CVSS Score: 7.5 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-rfgv-xxqx-mfg5](https://github.com/nodejs/undici/security/advisories/GHSA-rfgv-xxqx-mfg5) - [https://nvd.nist.gov/vuln/detail/CVE-2026-19534](https://nvd.nist.gov/vuln/detail/CVE-2026-19534) - [https://github.com/nodejs/undici/commit/2af0faf88b906d3127a360c3ac75164c0f95e5a5](https://github.com/nodejs/undici/commit/2af0faf88b906d3127a360c3ac75164c0f95e5a5) - [https://github.com/nodejs/undici/commit/6615e0175e9b635bcd2e3e87a47daa82f6f5b728](https://github.com/nodejs/undici/commit/6615e0175e9b635bcd2e3e87a47daa82f6f5b728) - [https://github.com/nodejs/undici/commit/66e12816064cf3068f63bd134748b7fc4e779bad](https://github.com/nodejs/undici/commit/66e12816064cf3068f63bd134748b7fc4e779bad) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/nodejs/undici](https://github.com/nodejs/undici) - [https://github.com/nodejs/undici/releases/tag/v6.28.1](https://github.com/nodejs/undici/releases/tag/v6.28.1) - [https://github.com/nodejs/undici/releases/tag/v7.29.1](https://github.com/nodejs/undici/releases/tag/v7.29.1) - [https://github.com/nodejs/undici/releases/tag/v8.10.2](https://github.com/nodejs/undici/releases/tag/v8.10.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-rfgv-xxqx-mfg5) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to Denial of Service via WebSocketStream unclean close [CVE-2026-85014](https://nvd.nist.gov/vuln/detail/CVE-2026-85014) / [GHSA-rx4f-c7p8-82vq](https://github.com/advisories/GHSA-rx4f-c7p8-82vq) <details> <summary>More information</summary> #### Details ##### Impact undici's `WebSocketStream` crashes the client process when a WebSocket connection is closed abruptly without a close handshake. On such an unclean close, the internal socket-close handler calls `abort()` on the writable stream even when the application holds a writer lock. Per the WHATWG Streams standard, aborting a locked stream returns a promise that rejects with a `TypeError`, and the handler discards that promise. The unobserved rejection surfaces as an `unhandledRejection` and, under Node.js's default behavior, terminates the process. A malicious or compromised WebSocket server can crash a client with a single connection teardown (a TCP reset, a proxy teardown, or a protocol-violating frame). Affected applications are those using the `WebSocketStream` API and writing through a writer, which is the standard way to write. All releases from undici 7.0.0 are affected. WebSocketStream was introduced in 7.0.0. ##### Patches Upgrade to undici v7.29.1 or v8.10.2. ##### Workarounds No workaround is available. #### Severity - CVSS Score: 5.9 / 10 (Medium) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-rx4f-c7p8-82vq](https://github.com/nodejs/undici/security/advisories/GHSA-rx4f-c7p8-82vq) - [https://nvd.nist.gov/vuln/detail/CVE-2026-85014](https://nvd.nist.gov/vuln/detail/CVE-2026-85014) - [https://github.com/nodejs/undici/commit/1858656ebb1e919311c1f31613dfd581b7214349](https://github.com/nodejs/undici/commit/1858656ebb1e919311c1f31613dfd581b7214349) - [https://github.com/nodejs/undici/commit/662d0ea671fe64139e79533c913fce412765e1d7](https://github.com/nodejs/undici/commit/662d0ea671fe64139e79533c913fce412765e1d7) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/nodejs/undici](https://github.com/nodejs/undici) - [https://github.com/nodejs/undici/releases/tag/v7.29.1](https://github.com/nodejs/undici/releases/tag/v7.29.1) - [https://github.com/nodejs/undici/releases/tag/v8.10.2](https://github.com/nodejs/undici/releases/tag/v8.10.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-rx4f-c7p8-82vq) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### undici vulnerable to TLS certificate validation bypass via dropped connect options in BalancedPool [CVE-2026-84961](https://nvd.nist.gov/vuln/detail/CVE-2026-84961) / [GHSA-w293-vg96-wgc3](https://github.com/advisories/GHSA-w293-vg96-wgc3) <details> <summary>More information</summary> #### Details ##### Impact undici's `BalancedPool` passes its constructor options through a JSON-based deep clone (`JSON.parse(JSON.stringify(...))`) before forwarding them to each per-upstream `Pool`. JSON cannot represent functions, so a caller-supplied `connect` or `tls` option containing a `checkServerIdentity` callback (or a custom connector function) is silently dropped before it reaches the TLS layer. As a result, a TLS peer whose certificate a custom `checkServerIdentity` was written to reject, but which passes Node's default hostname and chain checks, is silently accepted when the request is made through `BalancedPool`. `Client`, `Pool`, `Agent`, and `RoundRobinPool` destructure `connect`/`tls` before the clone and are not affected. Only applications that use `BalancedPool` with a function-valued `connect`/`tls` option (such as a custom `checkServerIdentity` or connector) are affected. ##### Patches Upgrade to `7.29.1` or `8.10.2`. `BalancedPool` now preserves the `connect` and `tls` options outside the JSON clone, so custom TLS verification callbacks are forwarded to each upstream unchanged. ##### Workarounds Use `Client`, `Pool`, or `Agent` instead of `BalancedPool` for connections that rely on a custom `checkServerIdentity` or connector, until upgraded. #### Severity - CVSS Score: 7.4 / 10 (High) - Vector String: `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N` #### References - [https://github.com/nodejs/undici/security/advisories/GHSA-w293-vg96-wgc3](https://github.com/nodejs/undici/security/advisories/GHSA-w293-vg96-wgc3) - [https://nvd.nist.gov/vuln/detail/CVE-2026-84961](https://nvd.nist.gov/vuln/detail/CVE-2026-84961) - [https://github.com/nodejs/undici/commit/8f5868fbdbc8f1146dfc1bcd1f2d117790141390](https://github.com/nodejs/undici/commit/8f5868fbdbc8f1146dfc1bcd1f2d117790141390) - [https://github.com/nodejs/undici/commit/f690157d728508652fef14673630c71515123e96](https://github.com/nodejs/undici/commit/f690157d728508652fef14673630c71515123e96) - [https://cna.openjsf.org/security-advisories.html](https://cna.openjsf.org/security-advisories.html) - [https://github.com/nodejs/undici](https://github.com/nodejs/undici) - [https://github.com/nodejs/undici/releases/tag/v7.29.1](https://github.com/nodejs/undici/releases/tag/v7.29.1) - [https://github.com/nodejs/undici/releases/tag/v8.10.2](https://github.com/nodejs/undici/releases/tag/v8.10.2) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-w293-vg96-wgc3) and the [GitHub Advisory Database](https://github.com/github/advisory-database) ([CC-BY 4.0](https://github.com/github/advisory-database/blob/main/LICENSE.md)). </details> > ❗ **Important** > > Release Notes retrieval for this PR were skipped because no github.com credentials were available. > If you are self-hosted, please see [this instruction](https://github.com/renovatebot/renovate/blob/master/docs/usage/examples/self-hosting.md#githubcom-token-for-release-notes). --- ### Configuration 📅 **Schedule**: (in timezone Europe/Berlin) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xNjQuNiIsInVwZGF0ZWRJblZlciI6IjQ0LjE2NC42IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJzZWN1cml0eSJdfQ==-->
Update dependency undici to v7.29.1 [SECURITY]
Some checks are pending
octoforge/step Scanning for vulnerabilities
/ ci-1 (push) Successful in 2m40s
/ ci (push) Successful in 0s
83da8833c2
octoforge-admin scheduled this pull request to auto merge when all checks succeed 2026-10-16 01:41:38 +00:00
octoforge-admin deleted branch renovate/npm-undici-vulnerability 2026-10-16 01:47:20 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
octoforge/blueprint-fullstack-ts!1
No description provided.