webpack

webpack breaking-changes badge

webpack (latest known version: 5.109.0) has 8 known breaking changes on record, each backed by a source URL.

Actively maintainedLatest known version: 5.109.0npm ↗

Security advisories

GHSA-38r7-794h-5758LOW>=5.49.0 <5.104.0

webpack buildHttp HttpUriPlugin allowedUris bypass via HTTP redirects → SSRF + cache persistence

source ↗

GHSA-4vvj-4cpr-p986MODERATE>=5.0.0-alpha.0 <5.94.0

Webpack's AutoPublicPathRuntimeModule has a DOM Clobbering Gadget that leads to XSS

source ↗

GHSA-8fgc-7cc6-rx7xLOW>=5.49.0 <5.104.1

webpack buildHttp: allowedUris allow-list bypass via URL userinfo (@) leading to build-time SSRF behavior

source ↗

GHSA-hc6q-2mpp-qw7jCRITICAL>=5.0.0 <5.76.0

Cross-realm object access in Webpack 5

source ↗

Recent changes

v5.0.0-alpha.8Breaking

* Replace Source in assets with SizeOnlySource after emitting * Do no read source or map from assets after emitting * upgraded webpack-sources to new major version * no longer sort file/context/missingDependencies in Compilation * change Cache Plugin API for better performance * got hook removed * get hook as new argument `gotHandlers`

source ↗

v5.0.0-beta.15Breaking

* generate and expose typescript typings from webpack

source ↗

v5.0.0-beta.29Breaking

* config options have moved * `cache.managedPaths/immutablePaths` -> `snapshot.managedPaths/immutablePaths` * `output.hotUpdateFunction` -> `output.hotUpdateGlobal` * `output.jsonpFunction` -> `output.chunkLoadingGlobal` * `output.chunkCallbackFunction` -> `output.chunkLoadingGlobal`

source ↗

v5.0.0-rc.1Breaking

* uses `target: "browserslist"` as default when a browserslist config has been found, otherwise fallback to `target: "web"` as usual * This could have unexpected changed to the EcmaScript version of the generated code * In same cases this might causes builds to fail because browserslist contain web and node versions * In most cases we expect this to simplify migration while still allowing to generate better code * This partially reverts a breaking change: Instead of changing the generated code from ES5 to ES6, this now changes it from ES5 to an automatic version depending on browserslist when available

source ↗

v5.0.0Breaking

Version 5.0.0 is a semver-major release over 4.47.0, but no breaking change was detected in the release notes text - flagged for manual review.

source ↗

v4.0.0Breaking

Version 4.0.0 is a semver-major release over 3.12.0, but no breaking change was detected in the release notes text - flagged for manual review.

source ↗

v3.0.0Breaking

Version 3.0.0 is a semver-major release over 2.7.0, but no breaking change was detected in the release notes text - flagged for manual review.

source ↗

v2.1.0-beta.28Breaking

Version 2.1.0-beta.28 is a semver-major release over 1.15.0, but no breaking change was detected in the release notes text - flagged for manual review.

source ↗

Check what changed for webpack since your installed version, live.

Open the playground →