Webpack 4.32.0 introduces subtle improvements over its predecessor, version 4.31.0, continuing the evolution of this powerful module bundler. While the core functionality remains consistent, developers may find value in the incremental refinements. A key difference lies in the dist section, where unpackedSize sees a small increase from roughly 1385431 to 1387757 pointing to minor adjustments within the bundled code. Both versions share identical dependencies and devDependencies, indicating no new features or major dependency updates.
For developers already using Webpack 4, upgrading to 4.32.0 promises a seamless transition with minimal risk of breaking changes. The unchanged dependency list suggests compatibility with existing projects will remain. The package description emphasizes Webpack's core strength in bundling CommonJs/AMD modules for browser deployment, code splitting for on-demand loading, and loader support for file pre-processing (JSON, JSX, CSS, etc), and custom extensions. This is still relevant and helpful in any modern web development. Furthermore, Webpack remains crucial in optimizing front-end performance and managing large, complex JavaScript applications. The continued maintenance and incremental upgrades like this one showcase the commitment to stability and ongoing improvements that developers rely on. Despite the similarities, always review changelogs for specific bug fixes or minor enhancements that might benefit your particular use case. The release date indicates a recent update which gives confidence to the support.
All the vulnerabilities related to the version 4.32.0 of the package
Regular Expression Denial of Service (ReDoS) in micromatch
The NPM package micromatch
prior to version 4.0.8 is vulnerable to Regular Expression Denial of Service (ReDoS). The vulnerability occurs in micromatch.braces()
in index.js
because the pattern .*
will greedily match anything. By passing a malicious payload, the pattern matching will keep backtracking to the input while it doesn't find the closing bracket. As the input size increases, the consumption time will also increase until it causes the application to hang or slow down. There was a merged fix but further testing shows the issue persisted prior to https://github.com/micromatch/micromatch/pull/266. This issue should be mitigated by using a safe pattern that won't start backtracking the regular expression due to greedy matching.
Uncontrolled resource consumption in braces
The NPM package braces
fails to limit the number of characters it can handle, which could lead to Memory Exhaustion. In lib/parse.js,
if a malicious user sends "imbalanced braces" as input, the parsing will enter a loop, which will cause the program to start allocating heap memory without freeing it at any moment of the loop. Eventually, the JavaScript heap limit is reached, and the program will crash.