Webpack version 0.4.1 represents a minor update over its predecessor, version 0.4.0, both aiming to streamline CommonJs module bundling for browser deployment. Both iterations equip developers with the tools to split codebases into manageable bundles, enabling on-demand loading and optimized performance. The core functionalities remain consistent: seamless support for JavaScript, JSON, Jade, CoffeeScript, and CSS files, further extensible through custom loaders. A shared dependency list highlights the consistent foundation, relying on libraries like Esprima for JavaScript parsing, Sprinf for string formatting, Optimist for argument parsing, and Uglify-js for code minification. Additionally, various loaders like css-loader, raw-loader, and jade-loader facilitate the handling of different file types.
The key differentiation likely lies within bug fixes and minor enhancements introduced in version 0.4.1, addressing potential issues identified in the initial 0.4.0 release. While the exact details of these changes aren't explicit in the provided data, developers upgrading to 0.4.1 would likely benefit from increased stability and potentially improved performance characteristics. Considering the proximity of the release dates (separated by a single day), the update is expected to be incremental. For those already using webpack 0.4.0, upgrading to 0.4.1 is recommended to leverage the improvements. New users will find both to be comparable entry points, though starting with the more recent 0.4.1 is typically best practice.
All the vulnerabilities related to the version 0.4.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.