webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
Upgrading webpack From 5.68.0 to 5.113.0
98 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking5.113.0
- Breaking5.113.0
- Breaking5.113.0
- Breaking5.112.1
- Breaking5.112.0
- Breaking5.107.0
- Breaking5.100.0
- Deprecated5.113.0
- Deprecated5.113.0
- Deprecated5.112.0
Security
Fixes 4 advisories affecting 5.68.0
- webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects → SSRF + cache persistencelow · GHSA-38r7-794h-5758
- Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSSmoderate · GHSA-4vvj-4cpr-p986
- webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behaviorlow · GHSA-8fgc-7cc6-rx7x
- Cross-realm object access in Webpack 5critical · GHSA-hc6q-2mpp-qw7j
- 5.108.0
Reject
__proto__,constructorandprototypepath segments incli.processArgumentsto prevent prototype pollution. - 5.104.1
Fixed a user information bypass vulnerability in the HttpUriPlugin plugin.
- 5.104.0
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.94.0
Fixed DOM clobbering in auto public path
- 5.76.0
CVE-2022-37603 fixed
Release by release
- Breaking
Drop unread call arguments and fold
Object.keysand.lengthwhen minifying. - Breaking
Require
minimizer-webpack-plugin5.14 for exact source map columns. - Breaking
Drop unread trailing arguments and write compound assignments when minifying.
- Deprecated
Make the
MultiCompilerdonehook async; its synccallis deprecated.
- Breaking
- Fixed
Reduce repeated scans when concatenating imported modules.
- Fixed
Avoid allocating CSS module sets for single-group chunks.
- Fixed
Return the value of every module type loaded with
importModule().
- Fixed
- Breaking
Drop more unused functions, arguments, calls, global reads and variable copies when minifying JavaScript.
- New
Support
concatenateModuleswithcacheUnaffected. - New
Speed up startup and CSS minification, sharing the compile cache with workers.
- Fixed
Rebuild a lazy barrel in watch when what it defers changes, and keep the imports and re-exports it still runs.
- Breaking
- Breaking
Require
minimizer-webpack-plugin5.12, so inline scripts in HTML minify again. - Deprecated
Export more plugins under their scope, move eleven loose exports under theirs, deprecate the old, and expose
template.DependencyTemplate,module.NullFactoryandutil.makeSerializable. - Deprecated
Rename the
Harmony*names toESM*and deprecate the old spellings. - New
Apply
pluginsset on a multi-configuration array to theMultiCompiler.
- Breaking
- New
Speed up CSS parsing by stepping over dropped selector preludes in bytes.
- Fixed
Throw on a write to an imported binding without losing concatenation.
- Fixed
Keep the
</html>a page was written with, whatever opened the element. - Fixed
Look an attribute up by what its value decodes to, not how it was spelled.
- New
- New
Enable
output.moduleby default withfutureDefaultson ESM-capable targets. - New
Remove
experiments.outputModule, setoutput.moduleto emit ESM instead. - New
Add
output.copyto copy files and directories into the output directory. - New
Minify inline CSS and JSON via
renderEmbeddedSource, exporting webpack's own.
- New
- Fixed
Fix
import()options, circular reexport severity and namespace writes. - Fixed
Skip ESM interop when require() targets a module outside the concatenation.
- Fixed
Fix concatenated
require()in arequire.ensurecallback or a computed request. - Fixed
Keep
optimization.minimizea boolean; its options move tominimizeOptions.
- Fixed
- Fixed
Fix analyzable ESM baking around cycles, mixed-served wasm and style url maps.
- Fixed
Minify more HTML and CSS shorthands, and cut two costs off printing.
- Fixed
Report a named import that is never read when it names a missing export.
- Fixed
Fix ESM circular reexports, cyclic const TDZ, and defer evaluation order.
- Fixed
Stop
output.htmlemitting an unused JS chunk for each generated page. - Fixed
Stop emitting the CSS chunk loading runtime when every CSS chunk is initial.
- Fixed
Strip a BOM a loader put on a string, and shift a source map that counted it.
- Fixed
38 other lines we could not sort, mostly version bumps
- 5.98.0
CI fix #19196
- 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
107 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.