Webpack version 0.3.6, released on May 1st, 2012, represents a minor update from the previous stable version, 0.3.4, released on April 7th, 2012. Both versions share the same core functionality: packing CommonJS modules for the browser to create optimized bundles that can be loaded on demand, improving initial load times for web applications. They both support a diverse array of file types out of the box, including JavaScript, JSON, Jade, CoffeeScript, and CSS thanks to the pre-configured loaders. Developers can extend this support further with custom loaders allowing webpack to process virtually any resource.
The key difference between version 0.3.6 and 0.3.4 lies in the addition of the less-loader dependency in version 0.3.6. This addition simplifies the process for developers using LESS CSS preprocessor. Instead of adding the loader manually, this version include less-loader that allows to import .less files directly.
Both versions depends on esprima, sprintf, optimist and uglify-js that ensures core functionality. They are also providing a developer tool vows for creating the tests.
If you are already using version 0.3.4, upgrading to 0.3.6 is recommended, specially if you are using LESS, as it provide improvements. Otherwise you can keep using the version 0.3.4 without problems. New users are recommended to install the latest stable release of the webpack package available.
All the vulnerabilities related to the version 0.3.6 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.