Packages

undici

8.12.4 · 5 Nov 2026MIT355.3M / weekRepositoryHomepagenpmAtom feed

Upgrading undici From 5.9.1 to 6.29.1

100 releases in betweennotes for 88

Reading releases, release notes and advisories…

Other targets from 5.9.1Newest 5.x5.29.0Latest8.12.4
  1. 5.9.1yours
  2. 13 releases
  3. 5.19.1security
  4. 15 releases
  5. 5.26.2security
  6. 13 releases
  7. 6.0.0major
  8. 8 releases
  9. 6.6.1security
  10. 9 releases
  11. 6.11.1security
  12. 23 releases
  13. 6.21.1security
  14. 3 releases
  15. 6.23.0security
  16. 6.24.0security
  17. 3 releases
  18. 6.27.0security
  19. 6.28.0security
  20. 6.28.1security
  21. 1 release
  22. 6.29.1target
2+
changes to make
23
advisories fixed
200+
new
291+
fixes

Counted from 88 of 100 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking6.7.0
  • Deprecated6.19.2

Security

Fixes 23 advisories affecting 5.9.1

  • CVE-2026-87018 · GHSA-qrxm-fqhp-jwvm

    6.29.1
  • CVE-2026-109383 · GHSA-2m5v-pch6-74hx

    6.29.1
  • CVE-2026-109869 · GHSA-xjj6-f33q-929c

    6.29.1
  • CVE-2026-109924 · GHSA-4qv8-2p9j-2685

    6.29.1
  • CVE-2026-109932 · GHSA-9fm3-97px-rjf6

    6.29.1
  • GHSA-rfgv-xxqx-mfg5: a WebSocket server could select a subprotocol when none was requested, causing an uncaught TypeError that could terminate the process. Undici now rejects the handshake with protocol error 1002. Fixed by 2af0faf8.

    6.28.1
  • 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 07c60d9c.

    6.28.1
  • 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-Range against the original response framing before resuming. Fixed by ce31bc82.

    6.28.1
  • GHSA-m8rv-5g2x-5cg5: a malicious type property on a duck-typed blob-like HTTP/1.1 request body could inject CRLF sequences into the generated content-type header. Undici now coerces and validates the value before adding it to the request. Fixed by 740a0b7c.

    6.28.0
  • GHSA-8xcm-r25x-g524: the retry interceptor could expose a stale Content-Length after resuming a partial response, potentially causing downstream response desynchronization, hangs, or corruption. Undici now rejects partial responses whose Content-Length is inconsistent with Content-Range. Fixed by cba3a52a, with corrected fixtures in 4fd5a0c6.

    6.28.0

Release by release

  1. 6.29.1

    Security fix15 Oct 20261 fix
  2. 6.29.0

    25 Sep 20261 fix
    • Fixed

      retry: Settle exposed body on terminal failure

  3. 6.28.1

    Security fix4 Sep 2026
    • Security

      GHSA-rfgv-xxqx-mfg5: a WebSocket server could select a subprotocol when none was requested, causing an uncaught TypeError that could terminate the process. Undici now rejects the handshake with protocol error 1002. Fixed by 2af0faf8.

    • 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 07c60d9c.

    • 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-Range against the original response framing before resuming. Fixed by ce31bc82.

  4. 6.28.0

    Security fix24 Jul 2026
    • Security

      GHSA-m8rv-5g2x-5cg5: a malicious type property on a duck-typed blob-like HTTP/1.1 request body could inject CRLF sequences into the generated content-type header. Undici now coerces and validates the value before adding it to the request. Fixed by 740a0b7c.

    • Security

      GHSA-8xcm-r25x-g524: the retry interceptor could expose a stale Content-Length after resuming a partial response, potentially causing downstream response desynchronization, hangs, or corruption. Undici now rejects partial responses whose Content-Length is inconsistent with Content-Range. Fixed by cba3a52a, with corrected fixtures in 4fd5a0c6.

    • Security

      GHSA-v3r7-h72x-cjcm: unsanitized domain and unparsed values passed to setCookie() could inject cookie attributes. Undici now validates cookie domains, paths, and unparsed attributes more strictly. Fixed by af748404.

    • Security

      GHSA-4cwx-7wf7-3272 and GHSA-jr45-8vmc-qm54 affect the cache interceptor in Undici v7 and v8; Undici v6 is not in their affected version ranges.

  5. 6.27.0

    Security fix15 Jun 2026
    • Security

      This release line addresses 4 security advisories.

    • Security

      of the security fixes below.

    • Security

      The v6 line is not affected by the SOCKS5 advisories (GHSA-vmh5-mc38-953g,

    • Security

      GHSA-vxpw-j846-p89q · CWE-400, CWE-770

  6. 6.26.0

    25 May 20261 fix
    • Fixed

      Validate EOF for chunked h1 responses

  7. 6.24.1 – 6.25.02 releases, nothing new or fixed; 1 without a note

  8. 6.24.0

    Security fix12 Mar 2026
    • Security

      This release backports fixes for security vulnerabilities affecting the v6 line.

    • Security

      GHSA-2mjp-6q6p-2qxm / CVE-2026-1525 (Medium) Inconsistent interpretation of HTTP requests (request/response smuggling class issue).

    • Security

      GHSA-f269-vfmq-vjvj / CVE-2026-1528 (High) Malicious WebSocket 64-bit frame length handling could crash the client.

    • Security

      GHSA-4992-7rv2-5pvq / CVE-2026-1527 (Medium) CRLF injection via the upgrade option.

170 other lines we could not sort, mostly version bumps
  • Backport upgrade diagnostics lifecycle fixes to v6.x

    6.29.0
  • feat(ProxyAgent) improve Curl-y behavior in HTTP->HTTP Proxy connections

    6.22.0
  • Backport 4472 to v6.x

    6.22.0
  • Append crlf to formdata body

    6.21.3
  • Removed clients with unrecoverable errors from the Pool #4088

    6.21.2
  • web: Mark as uncloneable when possible

    6.21.0
  • Remove patched dom types (v6.x branch)

    6.20.0
  • Ignore leading and trailing crlfs in formdata body

    6.20.0
  • Remove websocket experimental warning

    6.19.0
  • Export interceptor to type def file

    6.19.0

275 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.