webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
5.113.0 is the newest release of 5.x.
In short
1 security9 new1 faster15 fixed
Security
Fixes 1 advisory that affected 5.103.0
- Lowwebpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects → SSRF + cache persistenceGHSA-38r7-794h-5758 · 5 Feb 2026Fixed in 5.104.0
1 advisory affects 5.104.0; 5.104.1 fixes them
- 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
Release note
Minor Changes
Use method shorthand to render module content in
__webpack_modules__object.Enhance
import.meta.envto support object access.Optimize dependency sorting in updateParent: sort each module only once by deferring to finishUpdateParent(), and reduce traversal count in sortWithSourceOrder by caching WeakMap values upfront.
Handle more at-rules for CSS modules.
Added options to control the renaming of at-rules and various identifiers in CSS modules.
Added
base64url,base62,base58,base52,base49,base36,base32andbase25digests.Provide a stable runtime function variable
__webpack_global__.Improved
localIdentNamehashing for CSS.
Patch Changes
Added module existence check for informative error message in development mode.
Use the fully qualified class name (or export name) for
[fullhash]placeholder in CSS modules.Support universal lazy compilation.
Fixed module library export definitions when multiple runtimes.
Fixed CSS nesting and CSS custom properties parsing.
Don't write fragment from URL to filename and apply fragment to module URL.
Fixed bugs for
css/globaltype.Compatibility
import.meta.filenameandimport.meta.dirnamewithevaldevtools.Handle nested
__webpack_require__.The speed of identifier parsing has been improved.
Improve types.
Don't corrupt
debugIdinjection whenhidden-source-mapis used.- Security
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.
Serialize
HookWebpackError.Added ability to use built-in properties in dotenv and define plugin.
Optimizing the regular expression character class by specifying ranges for runtime code.
Reduce collision for local indent name in CSS.
Remove CSS link tags when CSS imports are removed.
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.