undici
8.12.4 · 5 Nov 2026MIT355.3M / weekRepositoryHomepagenpmAtom feed
7.30.2 is the newest release of 7.x.
In short
4 breaking1 removed25 new7 faster82 fixed52 changed86 internal
- Breaking
Upgrade llhttp to 9.2.0
- Breaking
Drop interceptors
- Breaking
Drop throwOnError
- Breaking
deps: Bump concurrently from 8.2.2 to 9.0.0 in /benchmarks (node < 18 unsupported)
- Removed
Drop node v18
Security
28 advisories affect 7.0.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
23 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 unbounded memory in the EventSource parserGHSA-4qv8-2p9j-2685 · 23 Oct 2026Fixed in 7.30.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
- ModerateUse of Insufficiently Random Values in undiciGHSA-c76h-2ccp-4975 · 21 Jan 2025Fixed in 7.2.3
- Lowundici vulnerable to downstream response splitting via retry interceptorGHSA-r53p-7pc4-xj5r · 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
- Lowundici Denial of Service attack via bad certificate dataGHSA-cxrh-j4jr-qwg3 · 15 May 2025Fixed in 7.5.0
Release note
What's Changed
fetch: Fix content-encoding order
Add regression test for broken body
Post request signal
Revert "fix: post request signal (#3354)"
websocket: Don't use pooled buffer in mask pool
Consider bytes read when dumping
Use explicit flag for when use has interacted with stream
Refactor example documentation structure and add CacheableLookup example
Ensure onConnect is always called
Refactor responseHeader to responseHeaders
Don't override user defined MaxListeners
Forward dispatch return value
Throw on retry when payload is consume by downstream
Remove file
- Breaking
Upgrade llhttp to 9.2.0
websocket: Reduce memory usage
Implement
BodyReadable.byteswebsocket: Avoid using Buffer.byteLength
Separate whatwg websocket logic from rfc 6455
websocket: Add fast-path for string input
Add generic type for opaque object
interceptors: Move throwOnError to interceptor
- Breaking
Drop interceptors
Don't call onConnect automatically
In CITGM, skip tests that are flaky there
Fix signature of RetryHandler
Fix fetch
duplexdocsRestore externalized Node.js dep compatibility
Cast falsy servername to null to avoid falsy inequality
Add backport action
Increased memory in finalization first appearing in v6.16.0
- Breaking
Drop throwOnError
types: Allow non strict HTTPMethod
Remove core isErrored and isReadable
Use bodyUnusable to check if body is unusable
non-recursive implementation of euclidian gcd in balanced pool
Do validation first before actual business logic, like super()
Use FinalizationRegistry for cloned response body
Use isIPv6 for checking if hostname is isIPv6
stripURLForReferrer jsdoc in fetch logic
Remove kInterceptors in ProxyAgent
Fix codesmells in retry-handler
Add autocompletable header types
Add missing kOriginalDispatch Symbol in mock-logic
Fix jsdoc in cookies/parse.js
Remove unnecessary parameters in USVString calls
Add jsdoc in tree.js, avoiding codesmells
Set isLowerCase param on all calls of HeadersList.append
Instantiation of ResponseError, pass headers and data correctly
meta: Move nightly comment body to issue body
types: Add Autocomplete utility type
Instantiation of SecureProxyConnectionError should pass options to parent class
Workflow commit user
Only create wasm buffer if requested
types: MockAgent accepts ProxyAgent, EnvHttpProxyAgent and RetryAgent for agent option
Stricter Headers brand checks in cookies
Update WPT
setEncoding should not throw on body #1125
websocket: Set websocket readyState on fail
Update WPT
Reduce memory usage in client-h1
Refactor fast timers, fix UND_ERR_CONNECT_TIMEOUT on event loop blocking
Remove third party everything support in fetch
Remove double validation in webidl
Update WPT
Populate defaultValues in webidl dict. converter when passing null or undefined
Change webidl.util.Type return to an enum value
Set default argument values to undefined instead of {}
Update WPT
Remove unused symbol
Fix formdata arg validation
Remove patched DOM types
Run asserts first if possible
Add jsdoc and do minor changes in utils.js
Update WPT
Update WPT
Jsdoc and minor optimizations in client-h1.js
Handle websocket closed correctly
Extract noop everywhere
jsdoc: lib/api/readable.js, fix some types
Use fasttimers for all connection timeouts
- Breaking
deps: Bump concurrently from 8.2.2 to 9.0.0 in /benchmarks (node < 18 unsupported)
Update WPT
jsdoc: Improve typing of deepClone
Update WPT
util: Rename validateHandler to assertRequestHandler, minor changes in util.js
mock: Remove Error.captureStackTrace in MockNotMatchedError
DRY up lib/core/diagnostics.js
Husky deprecation warning
Update WPT
diagnostics-channel: Use not deprecated subscribe fn
Update WPT
fetch: Make fullyReadBody sync
jsdoc: Add jsdoc to lib/web/fetch/constants.js
fetch: pullAlgorithm passes the async resume function through
Update WPT
Update WPT
fetch: Avoid async function in mainFetch to generate response
Update WPT
Append crlf to formdata body
Fire
closeon failed WebSocket connectionFire close on failed WebSocket connection
Handle body errors
Make cloned request inherit dispatcher
Remove symbols from web specs
Cleanup web symbol removal
Implement WebSocketStream
Export WebSocketStream, add docs and types
Add DNS interceptor
Prefer fail over close the websocket connection in error cases
Update WPT
mock: Fix mocking of Uint8Array and ArrayBuffers as provided mock-responses
ws: Move implementation agnostic onFail logic to shared function
Update WPT
Add option
ignoreTrailingSlashto MockAgent and.intercept()Ignore leading and trailing crlfs in formdata body
jsdoc: Adds some jsdoc to fetch headers implementation, minor changes
Check maxHeadersSize on client instantiation and not on Parser instantion
Replace instanceof in brand checks with isPrototypeOf
Restructure determineRequestsReferrer to match better spec
Set ws readyState if closed before connection could be established
types: Fix return type of WebidlUtil.Type
fetch: Refactor referrer policy util functions
PoolBase kClose and kDestroy should await and not return the Promise
data-url set extractValue of collectAnHTTPQuotedString by default to false
Faster brand check
web: Mark as uncloneable when possible
http: extract listeners from client-h1
http2: Extract listenHandlers and one bugfix
Http caching
types: Add missing
cacheprop to RequestInitFollow up
#3736: Leaked error event on response body
Unsafe methods not causing cache purge
Fix filename* parsing
Fix http2 test
Add unsafe-url referrerPolicy test
Dns interceptor ip ttl
Add node v23 workflow
Dns interceptor affinity
Fix aborting Streams
Add tests from cookie package
http2 queueing
Use resolved ports in dns interceptor
Cache
Assume blocking unless HEAD
Handle Headers in RedirectHandler
Skip debuglog tests
h2: Do not emit data after goaway
Fix redirect interceptor with FormData body
Handle undici Headers and Maps in redirect-handler
Handle undefined deref() of WeakRef(socket)
Range end is zero-indexed
lib: More cache fixes
Cache fixes
Headers webidl errors
Fix goaway
Update WPT
Memory store
lib: Add
nowAbsoluteto fast timersCache etag support
Support request cache control directives
Bench updates prior to release
#3817: Send servername for SNI on TLS
Revert nowAbsolute, add regression test
Missing error handler
301 and 302 change method to GET
Sqlite cache store
Sending formdata bodies with http2
Update return type of RetryCallback
Cleanup sqlite store
Pass down context in onConnect
Cache fixes
We can redirect disturbed request body if it's not going to be used
Only prune if adding new entry
Fixed the issue that there is no running request when http2 goaway
New hooks
Multiple fixes for SQLiteStore, enable it in CI
Update WPT
cache: Fix stale-while-revalidate and stale-if-error
- Removed
Drop node v18
Store data as blobs in sql cache
Move statusMessage as optional arg in end
Port retry to new hooks
Cache rm unused branch
Response error interceptor broken
Make the responseError interceptor backward compatible, add a body property
Add support for Timeout and Trailers
Correctly parse JSON contentType in responseError interceptor
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.