Webpack version 0.4.19 represents a subtle but potentially important update over its predecessor, version 0.4.18. Both versions serve as powerful CommonJs module bundlers, enabling developers to efficiently package and split their JavaScript codebases for browser deployment. Functionality includes on-demand loading of bundles and out-of-the-box support for diverse file types such as JavaScript, JSON, Jade, CoffeeScript, and CSS, extendable through custom loaders. The core dependencies remain identical across both versions, encompassing essential tools like esprima for JavaScript parsing, sprintf for string formatting, optimist for command-line argument parsing, and uglify-js for code minification. Loaders for CSS, raw files, value extraction, files, Jade templates, JSON, Less, styles, bundles, CoffeeScript, and scripts, alongside enhanced-require for module resolution, remain consistent. Similarly, development dependencies for testing (mocha, should) and licensing (MIT) are unchanged, with Tobias Koppers continuing as the author.
The primary distinction lies in the release date, with version 0.4.19 being published a few hours after 0.4.18 on July 11, 2012. This suggests that version 0.4.19 likely incorporates bug fixes or minor improvements identified immediately after the initial release of 0.4.18. Developers should upgrade to benefit from these potential refinements and ensure stability. If you are using 0.4.18, migrating to 0.4.19 ensures you are operating on the most up-to-date stable release within that specific minor version, potentially mitigating unseen issues. While the feature set remains the same, incorporating the newest revision ensures optimal performance and reliability for module bundling workflows.
All the vulnerabilities related to the version 0.4.19 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.