Packages

webpack

5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed

Upgrading webpack From 5.90.1 to 5.104.1

35 releases in betweenevery note read

Other targets from 5.90.1Newest 5.x5.113.0Latest5.112.2
  1. 5.90.1yours
  2. 6 releases
  3. 5.94.0security
  4. 16 releases
  5. 5.100.0breaking
  6. 9 releases
  7. 5.104.0security
  8. 5.104.1target

Before you upgrade

Tick each one off as you go
  • Breaking5.100.0

Security

  • Fixed a user information bypass vulnerability in the HttpUriPlugin plugin.

    5.104.1
  • Re-validate HttpUriPlugin redirects against allowedUris, restrict to http(s) and add a conservative redirect limit to prevent SSRF and untrusted content inclusion. Redirects failing policy are rejected before caching/lockfile writes.

    5.104.0
  • Fixed DOM clobbering in auto public path

    5.94.0

Release by release

  1. 5.104.1

    Security fix18 Dec 20251 fix
    • Security

      Fixed a user information bypass vulnerability in the HttpUriPlugin plugin.

    • Fixed

      Reexports runtime calculation should not accessing WEBPACK_IMPORT_KEY decl with var.

  2. 5.104.0

    Security fix16 Dec 202510 new · 15 fixes
    • Security

      Re-validate HttpUriPlugin redirects against allowedUris, restrict to http(s) and add a conservative redirect limit to prevent SSRF and untrusted content inclusion. Redirects failing policy are rejected before caching/lockfile writes.

    • New

      Use method shorthand to render module content in __webpack_modules__ object.

    • New

      Enhance import.meta.env to support object access.

    • New

      Optimize dependency sorting in updateParent: sort each module only once by deferring to finishUpdateParent(), and reduce traversal count in sortWithSourceOrder by caching WeakMap values upfront.

  3. 5.103.0

    18 Nov 202512 new · 19 fixes
    • New

      Added DotenvPlugin and top level dotenv option to enable this plugin

    • New

      Added WebpackManifestPlugin

    • New

      Added support the ignoreList option in devtool plugins

    • New

      Allow to use custom javascript parse function

  4. 5.102.1

    7 Oct 20259 fixes
    • Fixed

      Supported extends with env for browserslist

    • Fixed

      Supported JSONP fragment format for web workers.

    • Fixed

      Fixed dynamic import support in workers using browserslist.

    • Fixed

      Fixed default defer import mangling.

  5. 5.102.0

    29 Sep 202511 new · 13 fixes
    • New

      Added static analyze for dynamic imports

    • New

      Added support for import file from "./file.ext" with { type: "bytes" } to get the content as Uint8Array (look at example)

    • New

      Added support for import file from "./file.ext" with { type: "text" } to get the content as text (look at example)

    • New

      Added the snapshot.contextModule to configure snapshots options for context modules

  6. 5.101.3

    18 Aug 20253 fixes
    • Fixed

      Fixed resolve execution order issue from extra await in async modules

    • Fixed

      Avoid empty block for unused statement

    • Fixed

      Collect only specific expressions for destructuring assignment

  7. 5.101.2

    14 Aug 20253 fixes
    • Fixed

      Fixed syntax error when comment is on the last line

    • Fixed

      Handle var declaration for createRequire

    • Fixed

      Distinguish free variable and tagged variable

  8. 5.101.1

    12 Aug 202512 fixes
    • Fixed

      Filter deleted assets in processAdditionalAssets hook

    • Fixed

      HMR failure in defer module

    • Fixed

      Emit assets even if invalidation occurs again

    • Fixed

      Export types for serialization and deserialization in plugins and export the ModuleFactory class

1 other line we could not sort, mostly version bumps
  • CI fix #19196

    5.98.0

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