webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
5.113.0 is the newest release of 5.x.
In short
10 new19 fixed5 internal
Security
3 advisories affect 5.90.0; 5.104.1 fixes them
- 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
Bug Fixes
Fixed inner graph for classes
Optimized
RemoveParentModulesPluginvia bigint arithmeticFixed worklet detection in production mode
Fixed an error for cyclic importModule
Fixed types for
ServerandDirentAdded the
fetchPriorityto hmr runtime'sensureChunkfunctionDon't warn about dynamic import for build dependencies
External module generation respects the
output.environment.arrowFunctionoptionFixed consumimng shared runtime module logic
Fixed a runtime logic of multiple chunks
Fixed destructing assignment of dynamic import json file
Passing errors array for a module hash
Added
/*#__PURE__*/to generatedJSON.parse()Generated a library manifest after clean plugin
Fixed non
amdexternals andamdlibraryFixed a bug in
SideEffectsFlagPluginwith namespace re-exportsFixed an error message for condition
orThe
strictModuleErrorHandlingis now workingClean up child compilation chunk graph to avoid memory leak
Fixed CSS import prefer relative resolution
Fixed CSS runtime chunk loading error message
New Features
Allow to set
falsefor dev server inwebpack.config.jsAdded a warning for async external when not supported
Added a warning for async module when not supported
Added the
node-moduleoption for thenode.__filename/__dirnameand enable it by default for ESM targetAdded the
snapshot.unmanagedPathsoptionExposed the
MultiCompilerOptionstypeAdded CSS parser options to enable/disable named exports
Moved CSS the
exportsOnlyoption to CSS generator options
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.