webpack
5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed
Upgrading webpack From 5.67.0 to 5.104.1
70 releases in betweenevery note read
Before you upgrade
Tick each one off as you go- Breaking5.100.0
Security
Fixes 4 advisories affecting 5.67.0
- webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects → SSRF + cache persistencelow · GHSA-38r7-794h-5758
- Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSSmoderate · GHSA-4vvj-4cpr-p986
- webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behaviorlow · GHSA-8fgc-7cc6-rx7x
- Cross-realm object access in Webpack 5critical · GHSA-hc6q-2mpp-qw7j
- 5.104.1
Fixed a user information bypass vulnerability in the HttpUriPlugin plugin.
- 5.104.0
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.
- 5.94.0
Fixed DOM clobbering in auto public path
- 5.76.0
CVE-2022-37603 fixed
Release by release
- Security
Fixed a user information bypass vulnerability in the HttpUriPlugin plugin.
- Fixed
Reexports runtime calculation should not accessing WEBPACK_IMPORT_KEY decl with var.
- Security
- 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.
- New
Use method shorthand to render module content in
__webpack_modules__object. - New
Enhance
import.meta.envto support object access. - New
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.
- Security
- New
Added
DotenvPluginand top leveldotenvoption to enable this plugin - New
Added
WebpackManifestPlugin - New
Added support the
ignoreListoption in devtool plugins - New
Allow to use custom javascript parse function
- New
- Fixed
Supported
extendswithenvforbrowserslist - Fixed
Supported
JSONPfragment format for web workers. - Fixed
Fixed dynamic import support in workers using
browserslist. - Fixed
Fixed default defer import mangling.
- Fixed
- New
Added static analyze for dynamic imports
- New
Added support for
import file from "./file.ext" with { type: "bytes" }to get the content asUint8Array(look at example) - New
Added support for
import file from "./file.ext" with { type: "text" }to get the content as text (look at example) - New
Added the
snapshot.contextModuleto configure snapshots options for context modules
- New
- Fixed
Fixed resolve execution order issue from extra await in async modules
- Fixed
Avoid empty block for unused statement
- Fixed
Collect only specific expressions for destructuring assignment
- Fixed
- Fixed
Fixed syntax error when comment is on the last line
- Fixed
Handle var declaration for
createRequire - Fixed
Distinguish free variable and tagged variable
- Fixed
- Fixed
Filter deleted assets in
processAdditionalAssetshook - Fixed
HMR failure in defer module
- Fixed
Emit assets even if invalidation occurs again
- Fixed
Export types for serialization and deserialization in plugins and export the
ModuleFactoryclass
- Fixed
38 other lines we could not sort, mostly version bumps
- 5.98.0
CI fix #19196
- 5.88.1
Significantly improve TypeScript coverage for Library Plugins
- 5.88.0
Significantly improve type coverage for Dependency, Runtime, Template classes
- 5.87.0
Increase parser API types in internal plugins across dependency plugins @alexander-akait
- 5.86.0
Improve type coverage for Json Module type and lazy load json-assertions package
- 5.85.0
Use global runtime constants for webpack exports
- 5.84.0
Increase type coverage for serialization classes
- 5.84.0
Increase type coverage for
JavascriptParserandModuleDependencysubclasses - 5.84.0
Increase type coverage to
strict-mode quality for Configuration/Normalization objects - 5.84.0
Refactor duplicate strings by replacing them with constant for webpack_require instead of string literal
96 internal lines (docs, tests, tooling) left out.
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.