Webpack version 0.5.4 presents a minor update over its predecessor, version 0.5.3, both serving as powerful module bundlers primarily designed for browser-based JavaScript applications. The core functionality remains consistent: enabling developers to package CommonJS and AMD modules, thereby facilitating code splitting into manageable bundles that can be loaded on demand, optimizing initial load times and overall application performance. Both versions offer extensive support for various file types including JavaScript, JSON, Jade (now Pug), CoffeeScript, and CSS, all out-of-the-box, along with the extensibility provided by custom loaders for handling other formats. The dependency lists are identical, featuring essential tools like Esprima for JavaScript parsing, sprintf for string formatting, Optimist for command-line argument parsing, and UglifyJS for code minification. A suite of loaders such as css-loader, raw-loader, and others for specific file types (jade-loader, coffee-loader) ensures comprehensive asset handling. The development dependencies also remain the same, utilizing Mocha and Should for testing purposes. The key difference lies in the release date, with version 0.5.4 being released shortly after 0.5.3. This suggests that the update likely contains minor bug fixes or very subtle improvements, as the core functionalities and capabilities are unchanged. For developers, this implies that upgrading from 0.5.3 to 0.5.4 should be a seamless transition, offering potential refinements without necessitating significant code modifications or adjustments to the existing webpack configuration.
All the vulnerabilities related to the version 0.5.4 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.