Packages

webpack

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

Upgrading webpack From 5.1.0 to 5.104.1

193 releases in betweenevery note read

Other targets from 5.1.0Newest 5.x5.113.0Clears its 2 advisories5.94.0Latest5.112.2
  1. 5.1.0yours
  2. 122 releases
  3. 5.67.0breaking
  4. 10 releases
  5. 5.76.0security
  6. 30 releases
  7. 5.94.0security
  8. 16 releases
  9. 5.100.0breaking
  10. 9 releases
  11. 5.104.0security
  12. 5.104.1target

Before you upgrade

Tick each one off as you go
  • Breaking5.100.0
  • Breaking5.67.0
  • Deprecated5.25.0

Security

Fixes 2 advisories affecting 5.1.0

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

80 other lines we could not sort, mostly version bumps
  • CI fix #19196

    5.98.0
  • Significantly improve TypeScript coverage for Library Plugins

    5.88.1
  • Significantly improve type coverage for Dependency, Runtime, Template classes

    5.88.0
  • Increase parser API types in internal plugins across dependency plugins @alexander-akait

    5.87.0
  • Improve type coverage for Json Module type and lazy load json-assertions package

    5.86.0
  • Use global runtime constants for webpack exports

    5.85.0
  • Increase type coverage for serialization classes

    5.84.0
  • Increase type coverage for JavascriptParser and ModuleDependency subclasses

    5.84.0
  • Increase type coverage to strict-mode quality for Configuration/Normalization objects

    5.84.0
  • Refactor duplicate strings by replacing them with constant for webpack_require instead of string literal

    5.84.0

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