Webpack version 0.6.0 arrived on August 23, 2012, building upon the foundation of its predecessor, version 0.5.10, released two weeks earlier. Both versions serve the core purpose of packing CommonJs/AMD modules for browsers, enabling code splitting and on-demand loading of bundles. They boast built-in support for diverse file types like JavaScript, JSON, Jade, CoffeeScript, and CSS, with extensibility through custom loaders.
A notable difference lies in the dependencies. Version 0.6.0 introduces "enhanced-resolve" version 0.2.x and upgrades "enhanced-require" from 0.1.x to 0.2.x. This enhancement likely brought improvements in module resolution logic and potentially introduced new features or bug fixes within the module loading system. Furthermore, version 0.6.0 removes the optionalDependencies field entirely. For developers, this implies a potentially more robust and predictable dependency tree. Users upgrading from 0.5.10 should examine these changes in module resolution and the implications of removing optional dependencies, to ensure continued compatibility and potentially leverage fresh features for streamlined module handling. The addition to webpack-dev-middleware is also worth noting in the newest version.
All the vulnerabilities related to the version 0.6.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.