undici
8.12.4 · 5 Nov 2026MIT355.3M / weekRepositoryHomepagenpmAtom feed
7.30.2 is the newest release of 7.x.
In short
10 security
Security
Fixes 10 advisories that affected 7.29.0
- Highundici vulnerable to Denial of Service via unrequested WebSocket subprotocolGHSA-rfgv-xxqx-mfg5 · 29 Sep 2026Fixed in 7.29.1
- Highundici vulnerable to TLS certificate validation bypass via dropped connect options in BalancedPoolGHSA-w293-vg96-wgc3 · 29 Sep 2026Fixed in 7.29.1
- Moderateundici vulnerable to Denial of Service via orphaned RetryHandler response bodyGHSA-pmjh-fq2x-6v4x · 29 Sep 2026Fixed in 7.29.1
- Moderateundici vulnerable to Denial of Service via unbounded decompression of compressed responsesGHSA-3xpg-4rpp-hhhm · 29 Sep 2026Fixed in 7.29.1
- Moderateundici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared cachesGHSA-2jfj-6hjv-fm6j · 29 Sep 2026Fixed in 7.29.1
- Moderateundici vulnerable to Denial of Service via WebSocketStream unclean closeGHSA-rx4f-c7p8-82vq · 29 Sep 2026Fixed in 7.29.1
- Moderateundici vulnerable to Denial of Service via unhandled error in WebSocket permessage-deflate decompressionGHSA-3wwx-pv8p-q78v · 28 Sep 2026Fixed in 7.29.1
- Lowundici vulnerable to downstream response splitting via retry interceptorGHSA-r53p-7pc4-xj5r · 29 Sep 2026Fixed in 7.29.1
- Lowundici vulnerable to response truncation via oversized chunked responses in the dump interceptorGHSA-2gqq-gqf2-x968 · 29 Sep 2026Fixed in 7.29.1
- Lowundici vulnerable to caching and replay of unsafe HTTP method responsesGHSA-8436-99hf-9mmv · 29 Sep 2026Fixed in 7.29.1
8 advisories affect 7.29.1; 7.30.1 fixes them
- Highundici vulnerable to cache poisoning and cross-user disclosure via cross-origin redirectsGHSA-4w7w-5xrc-9h26 · 27 Oct 2026Fixed in 7.30.1
- Highundici vulnerable to TLS certificate validation bypass via dropped tls options in AgentGHSA-2m5v-pch6-74hx · 27 Oct 2026Fixed in 7.30.1
- Highundici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiationGHSA-qrxm-fqhp-jwvm · 27 Oct 2026Fixed in 7.30.1
- Highundici vulnerable to Denial of Service via unhandled error on excessive content-encodingsGHSA-xjj6-f33q-929c · 23 Oct 2026Fixed in 7.30.1
- Moderateundici WebSocket client vulnerable to Denial of Service via unbounded automatic PONG bufferingGHSA-9fm3-97px-rjf6 · 27 Oct 2026Fixed in 7.30.1
3 more
- Moderateundici vulnerable to Denial of Service via unhandled exception in the decompress interceptorGHSA-55wc-3pg8-jfw6 · 27 Oct 2026Fixed in 7.30.1
- Moderateundici vulnerable to Denial of Service via unbounded memory in the EventSource parserGHSA-4qv8-2p9j-2685 · 23 Oct 2026Fixed in 7.30.1
- Moderateundici vulnerable to Subresource Integrity bypass via non-lowercase algorithm tokensGHSA-f72v-6w45-q472 · 23 Oct 2026Fixed in 7.30.1
Release note
Security fixes
High severity
- Security
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 f690157d. - Security
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 6615e017.
Medium severity
- Security
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 63cf698b.
- Security
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 1858656e. - Security
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 b6c5a002. - Security
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 2c7d7e12. - Security
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 3c672659.
Low severity
- Security
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 b61d9432. - Security
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 21693f40. - Security
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-Rangeagainst the original response framing before resuming. Fixed by cd8af90b.
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.