Packages

webpack

5.112.2 · 23 Oct 2026MIT76.9M / weekRepositorynpmAtom feed

Your version

5.104.0

16 Dec 2025Where it was published

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

1 advisory affects 5.104.0; 5.104.1 fixes them

Release note

Minor Changes

  • Use method shorthand to render module content in __webpack_modules__ object.

  • Enhance import.meta.env to 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, base32 and base25 digests.

  • Provide a stable runtime function variable __webpack_global__.

  • Improved localIdentName hashing 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/global type.

  • Compatibility import.meta.filename and import.meta.dirname with eval devtools.

  • Handle nested __webpack_require__.

  • The speed of identifier parsing has been improved.

  • Improve types.

  • Don't corrupt debugId injection when hidden-source-map is 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.