Webpack version 0.5.3 represents a minor update over its predecessor, version 0.5.2, both iterations serving as powerful tools for bundling CommonJs and AMD modules for browser deployment. This capability allows developers to divide codebases into smaller, on-demand loaded bundles, optimizing website performance and user experience. Both versions seamlessly support a variety of file types, including JavaScript, JSON, Jade, CoffeeScript, and CSS, extending functionality further through custom loaders.
The core dependencies remain consistent between the two versions: esprima for JavaScript parsing, sprintf for string formatting, optimist for argument parsing, and uglify-js for code minification. Furthermore, a suite of loaders for common file types like CSS (css-loader), raw files (raw-loader), and specialized formats like Jade, JSON, LESS, CoffeeScript are supported. These loaders enable webpack to natively handle and transform those assets during the bundling process. Development dependencies such as mocha and should are also consistent, indicating a standard testing environment.
The primary noticeable differences lie in the release dates, with version 0.5.3 being released shortly after 0.5.2. The core functionalities and dependencies appears to be unchanged, suggesting the newer release may address bug fixes, minor enhancements, or internal optimizations that enhance overall stability and performance without introducing significant API changes. Developers already utilizing 0.5.2 should consider upgrading to 0.5.3 to benefit from these potential improvements while expecting a smooth transition.
All the vulnerabilities related to the version 0.5.3 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.