Webpack version 0.4.20 arrived on July 16, 2012, succeeding version 0.4.19, released just days earlier on July 11, 2012. Both versions, authored by Tobias Koppers, share the same core purpose: packing CommonJs modules for the browser, enabling developers to split codebases into manageable bundles loaded on demand. They support various file types like js, json, jade, coffee, and css out-of-the-box, extending capabilities with custom loaders. Crucially, the dependencies listed are identical between the two versions. Both versions of webpack rely on the same versions "esprima":"0.9.x","sprintf":"0.1.x","optimist":"0.2.x","uglify-js":"1.2.x","css-loader":"0.2.x","raw-loader":"0.1.x","val-loader":"0.1.x","file-loader":"0.1.x","jade-loader":"0.1.x","json-loader":"0.1.x","less-loader":"0.1.x","style-loader":"0.1.x","bundle-loader":"0.1.x","coffee-loader":"0.1.x","script-loader":"0.1.x","enhanced-require":"0.1.x". The devDependencies required for development are also identical on both versions "mocha":"*" and "should":"*". While the feature set remains consistent, users upgrading from 0.4.19 to 0.4.20 likely encountered incremental bug fixes, performance tweaks, or subtle internal improvements. Developers should consult the official webpack changelog or commit history for a detailed breakdown of the specific changes included in the 0.4.20 release to understand the motivations for the upgrade. Given the close release dates, the changes might address specific edge cases or minor issues encountered by early adopters of version 0.4.19. These early versions laid the foundation for the modern webpack bundling tool.
All the vulnerabilities related to the version 0.4.20 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.
Regular Expression Denial of Service in clean-css
Version of clean-css
prior to 4.1.11 are vulnerable to Regular Expression Denial of Service (ReDoS). Untrusted input may cause catastrophic backtracking while matching regular expressions. This can cause the application to be unresponsive leading to Denial of Service.
Upgrade to version 4.1.11 or higher.
Sandbox Bypass Leading to Arbitrary Code Execution in constantinople
Versions of constantinople
prior to 3.1.1 are vulnerable to a sandbox bypass which can lead to arbitrary code execution.
Update to version 3.1.1 or later.