Webpack version 0.11.7 represents a minor update over its predecessor, version 0.11.6, both designed as module bundlers for modern JavaScript applications. At their core, both versions offer the same fundamental functionality: packaging CommonJs, AMD, and labeled modules for browser deployment. They enable developers to split codebases into manageable bundles, optimizing loading times by delivering resources on demand. The support for loaders remains consistent, allowing pre-processing of diverse file types such as JSON, Jade (now Pug), CoffeeScript, CSS, and Less, along with custom transformations.
Examining the dependencies and devDependencies reveals that the core dependencies remain identical. This suggests that fundamental functionalities aren't drastically changed between the versions. This consistency makes a migration between the two versions likely seamless.
The crucial differentiating factor between the two versions lies in its release date. Version 0.11.7 was released on November 26, 2013, whereas version 0.11.6 was released about two weeks prior, on November 8, 2013. This indicates that version 0.11.7 likely incorporates bug fixes, minor performance improvements, or tweaks addressing specific issues encountered in version 0.11.6. Developers should consider upgrading to version 0.11.7 to leverage these refinements and ensure a more stable and optimized bundling process, especially if they encountered problems in the previous version. To be sure, it is always recommended to check the release notes.
All the vulnerabilities related to the version 0.11.7 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.