webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
Upgrading webpack From 5.0.0 to 5.94.0
166 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking5.67.0
- Deprecated5.25.0
Security
2 advisories still affect 5.94.0
- webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects → SSRF + cache persistencelow · GHSA-38r7-794h-5758
- webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behaviorlow · GHSA-8fgc-7cc6-rx7x
Upgrading to 5.104.1 clears them.
Fixes 2 advisories affecting 5.0.0
- Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSSmoderate · GHSA-4vvj-4cpr-p986
- Cross-realm object access in Webpack 5critical · GHSA-hc6q-2mpp-qw7j
- 5.94.0
Fixed DOM clobbering in auto public path
- 5.76.0
CVE-2022-37603 fixed
Release by release
- Security
Fixed DOM clobbering in auto public path
- New
Added runtime condition for harmony reexport checked
- New
Added new external type "module-import"
- New
Support
webpackIgnorefornew URL()construction
- Security
- New
Added the
binarygenerator option for asset modules to explicitly keep source maps produced by loaders - New
Added the
modern-modulelibrary value for tree shakable output - New
Added the
overrideStrictoption to override strict or non-strict mode for javascript modules - Fixed
Generate correct relative path to runtime chunks
- New
- Fixed
Doesn't crash with an error when the css experiment is enabled and contenthash is used
- Fixed
- New
Added platform target properties to compiler
- New
Improved multi compiler cache location and validating it
- New
Support
import attributesspec (withkeyword) - New
Support
node:prefix for Node.js core modules in runtime code
- New
- New
Allow to customize the stage of BannerPlugin
- New
Support CSS exports convention
- New
Support CSS local ident name
- New
Support
__webpack_nonce__for CSS chunks
- New
- New
Simplify and optimize chunk graph creation
- Fixed
Don't mangle when destructuring a reexport
- Fixed
Types for
Stats.toJson()andStats.toString() - Fixed
Many internal types
- Fixed
Clean up export css local vars
- New
- Fixed
Use
Math.imulinfnv1a32to avoid loss of precision, directly hash UTF16 values - Fixed
The
setStatus()of the HMR module should not return an array, which may cause infinite recursion - Fixed
__webpack_exports_info__.xxx.canMangleshouldn't always same as default - Fixed
Mangle export with destructuring
- Fixed
Use new runtime to reconsider skipped connections
activeState - Fixed
Make dynamic import optional in
try/catch - Fixed
Improve auto publicPath detection
- Fixed
- New
Add fallback for MIME mismatch error in async wasm loading
- New
Optimize
compareStringsNumeric - New
Optimize
numberHashusing 32-bit FNV1a for small ranges, 64-bit for larger - New
Reuse VM context across webpack magic comments
- Fixed
Set
unmanagedPathsin defaults - Fixed
Correct
preOrderIndexandpostOrderIndex - Fixed
Browsers versions of ECMA features
- New
79 other lines we could not sort, mostly version bumps
- 5.88.1
Significantly improve TypeScript coverage for Library Plugins
- 5.88.0
Significantly improve type coverage for Dependency, Runtime, Template classes
- 5.87.0
Increase parser API types in internal plugins across dependency plugins @alexander-akait
- 5.86.0
Improve type coverage for Json Module type and lazy load json-assertions package
- 5.85.0
Use global runtime constants for webpack exports
- 5.84.0
Increase type coverage for serialization classes
- 5.84.0
Increase type coverage for
JavascriptParserandModuleDependencysubclasses - 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.83.0
Document
compilation.afterChunkshook
92 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.