webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
5.113.0 is the newest release of 5.x.
In short
12 new18 fixed
Security
3 advisories affect 5.92.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
Correct tidle range's comutation for module federation
Consider runtime for pure expression dependency update hash
Return value in the
subtractRuntimefunction for runtime logicFixed failed to resolve promise when eager import a dynamic cjs
Avoid generation extra code for external modules when remapping is not required
The
css/globaltype now handles the exports nameAvoid hashing for
@keyframeand@propertyat-rules incss/globaltypeFixed mangle with destructuring for JSON modules
The
stats.hasWarnings()method now respects theignoreWarningsoptionFixed
ArrayQueueiteratorCorrect behavior of
__webpack_exports_info__.a.b.canMangleChanged to the correct plugin name for the
CommonJsChunkFormatPluginpluginSet the
chunkLoadingoption to theimportwhen environment is unknown and output is moduleFixed when runtimeChunk has no exports when
modulechunkFormat usedFixed parsing minimized CSS import
URLs in CSS files now have correct public path
The
cssmodule type should not allow parser to switch modeImproved context module types
New Features
Added platform target properties to compiler
Improved multi compiler cache location and validating it
Support
import attributesspec (withkeyword)Support
node:prefix for Node.js core modules in runtime codeSupport prefetch/preload for module chunk format
Support "..." in the
importsFieldsoption for resolverRoot module is less prone to be wrapped in IIFE
Export
InitFragmentclass for pluginsExport
compileBooleanMatcherutil for pluginsExport
InputFileSystemandOutputFileSystemtypesSupport the
esModulegenerator option for CSS modulesSupport CSS when chunk format is module
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.