Webpack evolved significantly between versions 0.11.18 and 1.0.0, offering developers enhanced capabilities for bundling JavaScript applications. Version 1.0.0 saw a noticeable update to its core dependencies, most prominently with webpack-core moving from version 0.2.x to 0.3.x and enhanced-resolve jumping from 0.5.x to 0.7.x. These updates likely brought performance improvements, bug fixes, and potentially new features within the module resolution process, critical for managing complex project structures.
The developer environment also received upgrades. While many loader dependencies remained consistent, webpack-dev-middleware advanced from the 0.11.x series to version 1.x, providing improved tools for development workflows and hot module replacement during development. Both versions offer a rich set of loaders for handling diverse file types like CSS, JSON, and CoffeeScript, streamlining asset management.
The introduction of the "Labeled Modules" description in v0.11.18, dropped in favor of "CommonJs/AMD modules" in v1.0.0, hints at a subtle shift or consolidation in supported module formats. This simplification might indicate either a standardization of module handling or focusing on the most widely adopted formats. These refinements collectively enhanced Webpack's efficiency and flexibility, making it a more robust tool for modern web development.
All the vulnerabilities related to the version 1.0.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.