undici
8.12.4 · 5 Nov 2026MIT355.3M / weekRepositoryHomepagenpmAtom feed
8.13.1 is the newest release of 8.x.
Summary· from the note as AI read it
Security fixUpgrade: this release fixes a security issue.
Security
- Upgrade; redirect-chain cache poisoning fixed, vulnerable SQLite entries invalidated
- Upgrade; redirect-chain cache poisoning fixed, vulnerable SQLite entries invalidated
- Upgrade if using compose(redirect(), cache()) with credentialed requests
- Upgrade if using compose(redirect(), cache()) with credentialed requests
- Upgrade; cross-origin 304 revalidation could validate wrong cached response
- Upgrade; cross-origin 304 revalidation could validate wrong cached response
- Upgrade; credentials leaked on cross-origin redirects with tuple headers
- Upgrade; credentials leaked on cross-origin redirects with tuple headers
In short
12 security11 fixed12 internal
- Security
CVE-2026-116592 / GHSA-mqg3-3v4r-cm32 (high)
- Security
Undici 8.12.2 and 8.12.3 could cache the final response from a redirect chain under the original request key without applying the origin, cache policy, freshness, or
Varyrequirements of every intermediate hop. This could poison a cache or expose one user's response to another user. The fix validates every redirect hop, combines theirVaryfields, limits freshness and stale serving to the most restrictive hop, and invalidates persistent SQLite entries written by vulnerable releases. - Security
CVE-2026-120474 / GHSA-7xg3-fphp-28hg (medium)
- Security
A shared cache used with
compose(redirect(), cache())could store a credential-dependent response from a same-origin redirect under the original URL. A later authenticated or unauthenticated request could then receive another user's response. Redirected requests carryingAuthorization,Cookie, orProxy-Authorizationare no longer stored under the original alias key. - Security
CVE-2026-116630 / GHSA-5rm8-gv32-r954 (medium)
- Security
A cross-origin redirect during cache revalidation could let a
304 Not Modifiedresponse from the redirect target validate a cached response from the original origin. Undici now checks that the revalidation target matches the cached URL and that any returned validator matches the stored representation before replaying the cached body. - Security
CVE-2026-120415 / GHSA-9v6h-8rgp-m69f (medium)
- Security
The redirect interceptor did not strip credentials correctly when request headers were supplied as an array of
[name, value]pairs. With a header-normalizing interceptor outsideredirect(), credentials could be sent to a cross-origin redirect target. Undici now handles both tuple arrays and flat header arrays when removing sensitive headers.
Release note
Security Fixes
This release fixes six vulnerabilities.
CVE-2026-116592 / GHSA-mqg3-3v4r-cm32 (high)
Undici 8.12.2 and 8.12.3 could cache the final response from a redirect chain under the original request key without applying the origin, cache policy, freshness, or Vary requirements of every intermediate hop. This could poison a cache or expose one user's response to another user. The fix validates every redirect hop, combines their Vary fields, limits freshness and stale serving to the most restrictive hop, and invalidates persistent SQLite entries written by vulnerable releases.
CVE-2026-120474 / GHSA-7xg3-fphp-28hg (medium)
A shared cache used with compose(redirect(), cache()) could store a credential-dependent response from a same-origin redirect under the original URL. A later authenticated or unauthenticated request could then receive another user's response. Redirected requests carrying Authorization, Cookie, or Proxy-Authorization are no longer stored under the original alias key.
CVE-2026-116630 / GHSA-5rm8-gv32-r954 (medium)
A cross-origin redirect during cache revalidation could let a 304 Not Modified response from the redirect target validate a cached response from the original origin. Undici now checks that the revalidation target matches the cached URL and that any returned validator matches the stored representation before replaying the cached body.
CVE-2026-120415 / GHSA-9v6h-8rgp-m69f (medium)
The redirect interceptor did not strip credentials correctly when request headers were supplied as an array of [name, value] pairs. With a header-normalizing interceptor outside redirect(), credentials could be sent to a cross-origin redirect target. Undici now handles both tuple arrays and flat header arrays when removing sensitive headers.
CVE-2026-120222 / GHSA-3g9m-rv3r-w5w2 (medium)
A downstream handler exception during cache replay could escape as an uncaught exception or unhandled promise rejection and terminate the process. This included dump size-limit failures, excessive Content-Encoding values in decompress, asynchronous cache-store failures, and cached-body replay after a 304. These failures are now reported as request errors.
CVE-2026-120423 / GHSA-r4pc-4jcp-7pqc (medium)
fetch() could skip Subresource Integrity verification when valid integrity metadata was separated or surrounded by ASCII whitespace other than a space, including a horizontal tab. Integrity metadata is now split on all ASCII whitespace before SHA-256, SHA-384, or SHA-512 verification.
What's Changed
mock: Ignore the trailing slash before a query string
Let interim 1xx responses through DecoratorHandler
types: Declare FormData prototype methods
cache: Ignore SQLITE_BUSY in the sqlite cache store
http2: Keep persistent error sink on released streams
h2: Replay requests whose HEADERS raced a GOAWAY
Disable wasm SIMD on the RISC-V
mock: Expose aborted on the mock dispatch controller
fetch: Avoid eager reads from async iterable bodies
h2: Preserve accepted streams with deferred ids
fetch: Preserve abort propagation after garbage collection
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.