webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
5.113.0 is the newest release of 5.x.
In short
7 new1 faster6 fixed2 changed
Security
4 advisories affect 5.70.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
Update node.js version constraints for ESM support
Add
baseUritoentryoptions to configure a static base uri (the base ofnew URL())Alphabetically sort exports in namespace objects when possible
Add
__webpack_exports_info__.name.canMangleAdd proxy support to
experiments.buildHttpimport.meta.webpackContextas ESM alternative torequire.contextHandle multiple alternative directories (e. g. due to resolve.alias or resolve.modules) when creating an context module
Bugfixes
Fix problem when assigning
globalto a variableFix crash when using
experiments.outputModuleandloaderContext.importModulewith multiple chunksAvoid generating progress output before the compilation has started (ProgressPlugin)
Fix handling of non-static-ESM dependencies with using TLA and HMR in the same module
Include the asset module filename in hashing
output.cleanwill keep HMR assets for at least 10s to allow HMR to access them even when compilation is faster then the browser
Performance
Fix asset caching when using the BannerPlugin
Developer Experience
Improve typings
Contributing
Capture caching errors when running the test suite
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.