webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
5.113.0 is the newest release of 5.x.
In short
1 new1 faster3 fixed1 internal
Security
4 advisories affect 5.49.0; 5.104.1 fixes them
- CriticalCross-realm object access in Webpack 5GHSA-hc6q-2mpp-qw7j · 13 Mar 2023Fixed in 5.76.0
- ModerateWebpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSSGHSA-4vvj-4cpr-p986 · 27 Aug 2024Fixed in 5.94.0
- Lowwebpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behaviorGHSA-8fgc-7cc6-rx7x · 5 Feb 2026Fixed in 5.104.1
- Lowwebpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects → SSRF + cache persistenceGHSA-38r7-794h-5758 · 5 Feb 2026Fixed in 5.104.0
Release note
Features
Add
experiments.buildHttpto buildhttp(s)://imports instead of keeping them externalkeeps a
webpack.lockfile with integrity andwebpack.lock.datawith cached content that should be committedAutomatically upgrades lockfile during development when remote resources change
(might be disabled withexperiments.buildHttp.upgrade: false)Lockfile is frozen during production builds and usually no network requests are made
(exception:Cache-Control: no-cache).The
webpack.lock.datapersisting can be disabled withexperiments.buildHttp.cacheLocation: false.
That will will introduce a availability risk.
(webpack cache will be used to cache network responses)
Bugfixes
Fix HMR infinite loop (again)
Fix rare non-determinism with
splitChunks.maxSizeintroduces in the last releaseOptional modules no longer cause the module to fail when
bailis set
Performance
Limit the number of parallel generated chunks for memory reasons
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.