Webpack version 0.5.1 is a minor release following version 0.5.0 of this powerful module bundler designed for browser-based JavaScript applications. Both versions enable developers to package CommonJS modules and split codebases into manageable chunks, facilitating on-demand loading for improved performance. They offer built-in support for various file types, including JavaScript, JSON, Jade, CoffeeScript, and CSS, and extend functionality through custom loaders. A core feature is its ability to manage dependencies effectively, packing them into optimized bundles for deployment.
Examining the dependencies, both versions share an identical set, including crucial tools like Esprima for JavaScript parsing, UglifyJS for code minification, and various loaders for handling CSS, raw files, templates, and more. This consistency suggests the update focuses on internal improvements rather than feature enhancements or dependency updates. The developer dependencies also remain the same, utilizing Mocha and Should for testing.
While the core functionalities remain unchanged, the release date difference between 0.5.0 and 0.5.1, released August 6, 2012, may indicate bug fixes, performance tweaks, or minor adjustments. Developers already using Webpack 0.5.0 might consider upgrading to 0.5.1 for potentially improved stability and reliability. However, the absence of significant changes suggests the upgrade isn't critical unless specific issues were encountered in the previous version. For new users, either version presents a capable foundation for module bundling, though opting for the newer 0.5.1 is generally recommended to benefit from any fixes or optimizations.
All the vulnerabilities related to the version 0.5.1 of the package
Incorrect Handling of Non-Boolean Comparisons During Minification in uglify-js
Versions of uglify-js
prior to 2.4.24 are affected by a vulnerability which may cause crafted JavaScript to have altered functionality after minification.
Upgrade UglifyJS to version >= 2.4.24.
Regular Expression Denial of Service in uglify-js
Versions of uglify-js
prior to 2.6.0 are affected by a regular expression denial of service vulnerability when malicious inputs are passed into the parse()
method.
var u = require('uglify-js');
var genstr = function (len, chr) {
var result = "";
for (i=0; i<=len; i++) {
result = result + chr;
}
return result;
}
u.parse("var a = " + genstr(process.argv[2], "1") + ".1ee7;");
$ time node test.js 10000
real 0m1.091s
user 0m1.047s
sys 0m0.039s
$ time node test.js 80000
real 0m6.486s
user 0m6.229s
sys 0m0.094s
Update to version 2.6.0 or later.
Regular Expression Denial of Service in clean-css
Version of clean-css
prior to 4.1.11 are vulnerable to Regular Expression Denial of Service (ReDoS). Untrusted input may cause catastrophic backtracking while matching regular expressions. This can cause the application to be unresponsive leading to Denial of Service.
Upgrade to version 4.1.11 or higher.
Sandbox Bypass Leading to Arbitrary Code Execution in constantinople
Versions of constantinople
prior to 3.1.1 are vulnerable to a sandbox bypass which can lead to arbitrary code execution.
Update to version 3.1.1 or later.