undici
8.12.4 · 5 Nov 2026MIT355.3M / weekRepositoryHomepagenpmAtom feed
Upgrading undici From 8.10.1 to 8.10.2
1 release in betweenevery note read
- 0
- changes to make
- 11
- advisories fixed
- 0
- new
- 0
- fixes
Security
8 advisories still affect 8.10.2
- undici vulnerable to TLS certificate validation bypass via dropped tls options in Agenthigh · GHSA-2m5v-pch6-74hx
- undici vulnerable to Denial of Service via unbounded memory in the EventSource parsermoderate · GHSA-4qv8-2p9j-2685
- undici vulnerable to cache poisoning and cross-user disclosure via cross-origin redirectshigh · GHSA-4w7w-5xrc-9h26
Upgrading to 8.12.2 clears them.
Fixes 11 advisories affecting 8.10.1
- undici vulnerable to response truncation via oversized chunked responses in the dump interceptorlow · GHSA-2gqq-gqf2-x968
- undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared cachesmoderate · GHSA-2jfj-6hjv-fm6j
- undici vulnerable to Denial of Service via unhandled error in WebSocket permessage-deflate decompressionmoderate · GHSA-3wwx-pv8p-q78v
- undici vulnerable to Denial of Service via unbounded decompression of compressed responsesmoderate · GHSA-3xpg-4rpp-hhhm
- undici vulnerable to caching and replay of unsafe HTTP method responseslow · GHSA-8436-99hf-9mmv
- undici vulnerable to Denial of Service via orphaned RetryHandler response bodymoderate · GHSA-pmjh-fq2x-6v4x
- undici vulnerable to downstream response splitting via retry interceptorlow · GHSA-r53p-7pc4-xj5r
- undici vulnerable to Denial of Service via unrequested WebSocket subprotocolhigh · GHSA-rfgv-xxqx-mfg5
- undici vulnerable to Denial of Service via WebSocketStream unclean closemoderate · GHSA-rx4f-c7p8-82vq
- undici vulnerable to cross-origin cache poisoning via missing origin isolation in interceptorshigh · GHSA-vp8m-p9jh-q5pm
- undici vulnerable to TLS certificate validation bypass via dropped connect options in BalancedPoolhigh · GHSA-w293-vg96-wgc3
- 8.10.2
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.
- 8.10.2
GHSA-w293-vg96-wgc3:
BalancedPoolcould drop function-valued connection options while cloning its configuration, including custom TLS certificate validation callbacks. Undici now preservesconnectand legacytlsoptions when creating upstreams. Fixed by 8f5868fb. - 8.10.2
GHSA-rfgv-xxqx-mfg5: a WebSocket server could select a subprotocol when none was requested, causing an uncaught
TypeErrorthat could terminate the process. Undici now rejects the handshake with protocol error 1002. Fixed by 66e12816. - 8.10.2
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.
- 8.10.2
GHSA-rx4f-c7p8-82vq: an unclean
WebSocketStreamclose 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. - 8.10.2
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. - 8.10.2
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. - 8.10.2
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.
- 8.10.2
GHSA-8436-99hf-9mmv: cache interceptors could store and replay responses to unsafe HTTP methods such as
POSTorDELETE. Undici now restricts cache reads and writes to safe methods while preserving invalidation by successful unsafe requests. Fixed by 2be07bf9. - 8.10.2
GHSA-2gqq-gqf2-x968: the dump interceptor could treat an oversized chunked response as successfully truncated when no
Content-Lengthwas present. Undici now enforcesmaxSizeagainst received bytes and aborts oversized responses. Fixed by 6d583124.
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.