undici
8.12.4 · 5 Nov 2026MIT355.3M / weekRepositoryHomepagenpmAtom feed
7.30.2 is the newest release of 7.x.
In short
1 removed2 new2 faster18 fixed14 changed25 internal
- Removed
eventsource: Remove promise for #reconnect method
Security
31 advisories affect 7.16.0; 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 unrequested WebSocket subprotocolGHSA-rfgv-xxqx-mfg5 · 29 Sep 2026Fixed in 7.29.1
- Highundici vulnerable to cross-user information disclosure and parse-time crash via degenerate private cache directivesGHSA-4cwx-7wf7-3272 · 3 Aug 2026Fixed in 7.29.0
26 more
- Highundici WebSocket client vulnerable to denial of service via fragment count bypassGHSA-vxpw-j846-p89q · 19 Jun 2026Fixed in 7.28.0
- HighUndici has Unbounded Memory Consumption in WebSocket permessage-deflate DecompressionGHSA-vrm6-8vpv-qv8q · 13 Mar 2026Fixed in 7.24.0
- HighUndici has Unhandled Exception in WebSocket Client Due to Invalid server_max_window_bits ValidationGHSA-v9p9-hfj2-hcw8 · 13 Mar 2026Fixed in 7.24.0
- HighUndici: Malicious WebSocket 64-bit length overflows parser and crashes the clientGHSA-f269-vfmq-vjvj · 13 Mar 2026Fixed in 7.24.0
- Moderateundici WebSocket client vulnerable to Denial of Service via unbounded automatic PONG bufferingGHSA-9fm3-97px-rjf6 · 27 Oct 2026Fixed in 7.30.1
- 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
- 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 CRLF Injection via blob-like body 'type' propertyGHSA-m8rv-5g2x-5cg5 · 3 Aug 2026Fixed in 7.29.0
- Moderateundici vulnerable to cross-user information disclosure via whitespace around equals in Cache-Control directivesGHSA-jr45-8vmc-qm54 · 3 Aug 2026Fixed in 7.29.0
- Moderateundici vulnerable to cookie attribute injection via unsanitized domain and unparsed setCookie fieldsGHSA-v3r7-h72x-cjcm · 3 Aug 2026Fixed in 7.29.0
- Moderateundici vulnerable to downstream response desynchronization via retry interceptorGHSA-8xcm-r25x-g524 · 3 Aug 2026Fixed in 7.29.0
- Moderateundici vulnerable to HTTP header injection via Set-Cookie percent-decodingGHSA-p88m-4jfj-68fv · 19 Jun 2026Fixed in 7.28.0
- Moderateundici vulnerable to cross-user information disclosure via shared cache whitespace bypassGHSA-pr7r-676h-xcf6 · 18 Jun 2026Fixed in 7.28.0
- ModerateUndici has CRLF Injection in undici via `upgrade` optionGHSA-4992-7rv2-5pvq · 13 Mar 2026Fixed in 7.24.0
- ModerateUndici has an HTTP Request/Response Smuggling issueGHSA-2mjp-6q6p-2qxm · 13 Mar 2026Fixed in 7.24.0
- ModerateUndici has an unbounded decompression chain in HTTP responses on Node.js Fetch API via Content-Encoding leads to resource exhaustionGHSA-g9mf-h72j-4rw9 · 14 Jan 2026Fixed in 7.18.2
- 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
- Lowundici vulnerable to Set-Cookie SameSite attribute downgrade via permissive substring matchingGHSA-g8m3-5g58-fq7m · 19 Jun 2026Fixed in 7.28.0
- Lowundici vulnerable to HTTP response queue poisoning via keep-alive socket reuseGHSA-35p6-xmwp-9g52 · 19 Jun 2026Fixed in 7.28.0
Release note
What's Changed
Drop npm token, use OIDC instead
fetch: Instantiate readableStream in extractBody with sync methods
Remove async on
[kClose]and[kDestroy], only return Promisefetch: Make consumeBody sync
Make
client.connect()syncfetch: Remove promise in exported fetch
#4451: Implement http2 cookie support
Avoid intermediate promise on
BodyReadable.dumpPerf (fetch): use less promises for ReadableStream
Catch synchronous errors in request callbacks
Avoid instanceof MockNotMatchedError
- Removed
eventsource: Remove promise for #reconnect method
Make UndiciErrors reliable to instanceof
buildAndValidateMockOptions should always get an object passed and always return an object
Remove unused ResponseStatusCodeError
lint: Avoid unintented use of globals in code and tests, improve test for installing/overwriting globals
'no-referrer-when-downgrade' in determineRequestsReferrer should return referrerURL
Deflake cache-fastimers-fix.js
Improve validation of IP addresses as trustworthy, correct ipv4 check
Test (pool.js): fix flakyness of clientTtl test
Test (eventsource): refactor tests for eventsource, speed them up
Remove useless catch in client-h1.js
Implement proper stale-while-revalidate behavior per RFC 5861
Test (websocket): speed up test/websocket/issue-2679.js
webidl: Fix existing and add missing buffer source converters
Use real wpt test server
Fix writing to websocketstream with SharedArrayBuffer/SharedArrayBuff…
h2: Adjust :scheme on h2 requests
Change webidl attribute to bitwise flag
Support for capping the number of origins in Agent
wpt: Properly handle write permissions errors in wpt-runner setup
fetch: Process content-encoding header only if relevant
websocket: Always emit error event
Wpt should use master branch
Shell command built from environment values
Disable SIMD for PPC64 architecture, add UNDICI_NO_WASM_SIMD env to facilitate testing
Make error symbols non enumerable
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.