Packages

undici

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

Upgrading undici From 7.2.1 to 7.30.1

46 releases in betweenevery note read

Other targets from 7.2.1Newest 7.x7.30.2Latest8.12.4
  1. 7.2.1yours
  2. 1 release
  3. 7.2.3security
  4. 17 releases
  5. 7.18.2security
  6. 7 releases
  7. 7.24.0security
  8. 13 releases
  9. 7.28.0security
  10. 7.29.0security
  11. 7.29.1security
  12. 1 release
  13. 7.30.1target

Before you upgrade

Tick each one off as you go
  • Breaking7.16.0
  • Breaking7.13.0

Security

Fixes 29 advisories affecting 7.2.1

Release by release

  1. 7.30.1

    Security fix15 Oct 20263 fixes
  2. 7.30.0

    25 Sep 20263 fixes
    • Fixed

      Selectively re-enable SIMD for ppc64

    • Fixed

      Honor backpressure in decompression interceptor

    • Fixed

      Close rejected HTTP/2 WebSocket streams on v7.x

  3. 7.29.1

    Security fix4 Sep 2026
    • Security

      GHSA-w293-vg96-wgc3: BalancedPool could drop function-valued connection options while cloning its configuration, including custom TLS certificate validation callbacks. Undici now preserves connect and legacy tls options 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 TypeError that could terminate the process. Undici now rejects the handshake with protocol error 1002. Fixed by 6615e017.

    • 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 WebSocketStream close 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.

  4. 7.29.0

    Security fix24 Jul 2026
    • Security

      GHSA-4cwx-7wf7-3272: malformed qualified private Cache-Control directives could cause cross-user information disclosure in shared caches or a parse-time crash. The cache parser now treats empty qualified directives conservatively and safely handles mixed qualified and unqualified directives. Fixed by 9f10f1e9, with regression coverage in 466e99d1.

    • 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 33928bc2.

    • Security

      GHSA-jr45-8vmc-qm54: optional whitespace around = in qualified no-cache and private directives could bypass shared-cache restrictions and disclose authenticated data across users. Cache-Control parsing now normalizes these forms and applies conservative cache decisions. Fixed by 98011a86.

    • 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 1b5a5312, with corrected fixtures in 4a9dafb1.

    • 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 3bf91ddb.

  5. 7.28.0

    Security fix15 Jun 2026
    • Security

      This release line addresses 7 security advisories, all shipped in v7.28.0.

    • Security

      The v7 line is not affected by GHSA-38rv-x7px-6hhq (CVE-2026-9675), which is

    • Security

      Note on GHSA-hm92-r4w5-c3mj: this fix shipped in v7.28.0, not the

    • Security

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

  6. 7.27.2

    6 Jun 20261 fix
    • Fixed

      Use legacy global dispatcher in v7

  7. 7.27.1

    4 Jun 20261 fix
    • Fixed

      Preserve raw headers in dispatch handler bridge

  8. 7.27.0

    1 Jun 20261 fix
    • Fixed

      Support Node 26 and legacy global dispatcher

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

    7.30.0
  • Ignore AGENTS.md

    7.24.7
  • Formdata tests

    7.24.5
  • Remove maxDecompressedMessageSize

    7.24.2
  • webidl: Access keys in lexicographical order

    7.23.0
  • extractBody fixes

    7.20.0
  • Minor code cleanups to decompress interceptor

    7.19.2
  • Return response when receiving 401 instead of network error

    7.19.2
  • Test and Fix running without SSL

    7.18.1
  • types: Use MessagePort instance type in MessageEvent

    7.17.0

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