Webpack version 0.4.0 introduces notable changes compared to its predecessor, version 0.3.20, primarily evidenced in its enhanced dependency management. A key upgrade is the dependency on css-loader, moving from version 0.1.x in 0.3.20 to 0.2.x in this newer release. This suggests improvements or bug fixes within the CSS loading functionality that developers leveraging webpack for front-end development should consider. Both versions share the core functionality centered around packing CommonJs modules for browser deployment, a feature that allows for splitting codebases into manageable, on-demand loaded bundles. This capability remains a cornerstone for optimizing website performance and initial load times.
Both versions support a wide array of file types like JavaScript, JSON, Jade, CoffeeScript, and CSS through integrated loaders, expandable via custom loader implementations, offering developers considerable flexibility in project configuration. This version continues to rely on crucial dependencies like esprima for JavaScript parsing, sprintf for string formatting, optimist for command-line argument parsing, and uglify-js for code minification. Development dependencies like Vows suggest a focus on maintaining code quality through testing. The licensing remains MIT, promoting open-source adoption. Transitioning developers from 0.3.20 should evaluate the impact of the css-loader upgrade while recognizing the continuity of core webpack functionalities. Despite the significant jump in version number, the core offering remains similar from a functionality perspective, highlighting a strong commitment towards backwards compatibility.
All the vulnerabilities related to the version 0.4.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.