Webpack saw a notable update moving from version 0.9.3 to 0.10.0 in mid-2013. Both versions served as module bundlers for browser-based JavaScript applications, handling various module formats and preprocessors. The core functionalities remained consistent, focusing on splitting codebases into bundles and supporting loaders for file types like JSON, Jade, CoffeeScript, CSS, and Less.
However, several dependency updates highlight the underlying improvements. The newer version upgraded optimist from 0.3.x to 0.5.x and uglify-js from 2.2.x to 2.3.x, potentially introducing performance enhancements and bug fixes. The update of webpack-core from 0.1.x to 0.2.x would suggest enhancements in the core bundling logic. Additionally, base64-encode appeared as a new dependency in version 0.10.0, possibly addressing specific encoding needs within the bundler.
The development dependencies also saw a few changes, with mocha, should, and express all receiving updates. Most loaders remained at the same version, but webpack-dev-middleware went from 0.9.x to 0.10.x. The addition of updated and new dependencies may translate to better support for development workflows and debugging. Developers should investigate the specific changelogs for optimist, uglify-js, and webpack-core to understand the precise benefits brought in version 0.10.0. This information will drive informed decisions regarding upgrading and incorporating the latest bundled features.
All the vulnerabilities related to the version 0.10.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.