Webpack version 0.5.0 represents a notable update from the previous stable version 0.4.25 in this early stage of Webpack. Both versions serve the purpose of bundling CommonJs modules for browser environments, allowing for code splitting and on-demand loading of assets. They support a wide range of file types including Javascript, JSON, Jade, CoffeeScript, and CSS through built-in and custom loaders. The dependency list seems identical, covering essential utilities like Esprima for JavaScript parsing, sprintf for string formatting, Optimist for command-line argument parsing, and Uglify-JS for code minification. The core loaders like css-loader, raw-loader, and various preprocessor loaders (jade-loader, less-loader, coffee-loader) are also consistent between the two versions. Both use Mocha and Should for development dependencies. The key observable difference lies in the optionalDependencies field; version 0.4.25 explicitly defines an empty optionalDependencies object, while version 0.5.0 omits it. Although subtle, such change sometimes hints at changed behavior or different build steps regarding optional dependency handling.
Developers migrating to 0.5.0 should primarily focus on potential subtle changes stemming from dependency upgrades within specified ranges (e.g., "esprima": "0.9.x"). Although the release occurred on the same date, the actual build processing shows difference in releaseTime, implying that the newer version might contain bug fixes, performance improvements, or minor feature enhancements. It's recommended to thoroughly test your Webpack configurations after upgrading to ensure compatibility and optimal performance. The consistent core feature set suggests a relatively seamless transition, but monitoring build outputs and runtime behavior is crucial.
All the vulnerabilities related to the version 0.5.0 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.