undici
8.12.4 · 5 Nov 2026MIT355.3M / weekRepositoryHomepagenpmAtom feed
Upgrading undici From 8.0.1 to 8.12.2
21 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking8.0.3
Security
Fixes 30 advisories affecting 8.0.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 TLS certificate validation bypass via dropped tls options in Agenthigh · GHSA-2m5v-pch6-74hx
- undici vulnerable to HTTP response queue poisoning via keep-alive socket reuselow · GHSA-35p6-xmwp-9g52
- undici WebSocket client vulnerable to denial of service via cumulative fragment bypasshigh · GHSA-38rv-x7px-6hhq
- undici vulnerable to Denial of Service via unbounded decompression of compressed responsesmoderate · GHSA-3xpg-4rpp-hhhm
- undici vulnerable to cross-user information disclosure and parse-time crash via degenerate private cache directiveshigh · GHSA-4cwx-7wf7-3272
- 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
- undici vulnerable to Denial of Service via unhandled exception in the decompress interceptormoderate · GHSA-55wc-3pg8-jfw6
- undici vulnerable to caching and replay of unsafe HTTP method responseslow · GHSA-8436-99hf-9mmv
- undici vulnerable to downstream response desynchronization via retry interceptormoderate · GHSA-8xcm-r25x-g524
- undici WebSocket client vulnerable to Denial of Service via unbounded automatic PONG bufferingmoderate · GHSA-9fm3-97px-rjf6
- undici vulnerable to Subresource Integrity bypass via non-lowercase algorithm tokensmoderate · GHSA-f72v-6w45-q472
- undici vulnerable to Set-Cookie SameSite attribute downgrade via permissive substring matchinglow · GHSA-g8m3-5g58-fq7m
- undici vulnerable to cross-origin request routing via SOCKS5 proxy pool reusehigh · GHSA-hm92-r4w5-c3mj
- undici vulnerable to cross-user information disclosure via whitespace around equals in Cache-Control directivesmoderate · GHSA-jr45-8vmc-qm54
- undici vulnerable to CRLF Injection via blob-like body 'type' propertymoderate · GHSA-m8rv-5g2x-5cg5
- undici vulnerable to HTTP header injection via Set-Cookie percent-decodingmoderate · GHSA-p88m-4jfj-68fv
- undici vulnerable to Denial of Service via orphaned RetryHandler response bodymoderate · GHSA-pmjh-fq2x-6v4x
- undici vulnerable to cross-user information disclosure via shared cache whitespace bypassmoderate · GHSA-pr7r-676h-xcf6
- undici vulnerable to Denial of Service via TLS 1.2 certificate-changing renegotiationhigh · GHSA-qrxm-fqhp-jwvm
- 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 cookie attribute injection via unsanitized domain and unparsed setCookie fieldsmoderate · GHSA-v3r7-h72x-cjcm
- undici vulnerable to TLS certificate validation bypass via dropped requestTls in SOCKS5 ProxyAgenthigh · GHSA-vmh5-mc38-953g
- undici WebSocket client vulnerable to denial of service via fragment count bypasshigh · GHSA-vxpw-j846-p89q
- undici vulnerable to TLS certificate validation bypass via dropped connect options in BalancedPoolhigh · GHSA-w293-vg96-wgc3
- undici vulnerable to Denial of Service via unhandled error on excessive content-encodingshigh · GHSA-xjj6-f33q-929c
- 8.12.2
CVE-2026-87018 · GHSA-qrxm-fqhp-jwvm
- 8.12.2
CVE-2026-109383 · GHSA-2m5v-pch6-74hx
- 8.12.2
CVE-2026-109829 · GHSA-4w7w-5xrc-9h26
- 8.12.2
CVE-2026-109869 · GHSA-xjj6-f33q-929c
- 8.12.2
CVE-2026-87029 · GHSA-55wc-3pg8-jfw6
- 8.12.2
CVE-2026-109841 · GHSA-f72v-6w45-q472
- 8.12.2
CVE-2026-109924 · GHSA-4qv8-2p9j-2685
- 8.12.2
CVE-2026-109932 · GHSA-9fm3-97px-rjf6
- 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.
Release by release
- Security
CVE-2026-87018 · GHSA-qrxm-fqhp-jwvm
- Security
CVE-2026-109383 · GHSA-2m5v-pch6-74hx
- Security
CVE-2026-109829 · GHSA-4w7w-5xrc-9h26
- Security
CVE-2026-109869 · GHSA-xjj6-f33q-929c
- Security
- Fixed
Restore build:wasm npm script
- Fixed
- New
Added @perseveranza-pets/milo as alternative experimental HTTP parser
- New
cache: Compress big sqlite cache entries with zstd
- New
Throw an error when WebAssembly is not available.
- Fixed
cookies: Ignore a numeric expires outside the Date range
- New
- Fixed
Close rejected HTTP/2 WebSocket handshake streams
- Fixed
Avoid reconnecting aborted requests
- Fixed
- Fixed
Fix websocketstream bugs
- Fixed
Fix hang on 3xx response with large body
- Fixed
- Fixed
Complete upgrade diagnostics lifecycle
- Fixed
decompress: Join a repeated content-encoding header
- Fixed
cookies: Keep a cookie named proto in getCookies
- Fixed
Selectively re-enable SIMD for ppc64
- Fixed
- Security
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.
- 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 8f5868fb. - 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 66e12816. - 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 4411a238.
- Security
- New
h1: Drop idle-socket timer floor with a ref'd setImmediate
- New
fetch: Skip empty RequestInit work
- Fixed
mock: re-invoke reply callback for persistent mocks
- Fixed
Preserve MockAgent interceptors for legacy global fetch
- New
21 other lines we could not sort, mostly version bumps
- 8.12.0
extractBody fixes 2
- 8.12.0
Reenable cachestorage wpts
- 8.12.0
Limit zstd window size to 8 MB
- 8.12.0
Wpt/wpt runner fixes
- 8.12.0
Split wpt out of npm test
- 8.11.1
Deslopify websocket test
- 8.11.1
Revert "fix: preserve HTTP/2 for legacy fetch consumers"
- 8.11.0
Use private fields for brand checks
- 8.11.0
Dataurl parsing improvements + update WPT
- 8.8.0
fetch: Use ReadableStreamTee for cloning streams
205 internal lines (docs, tests, tooling) left out.
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.