Webpack version 0.4.13 represents a marginal but potentially important update over its predecessor, version 0.4.12, in the early stages of this powerful module bundler. Both versions share the core functionality of packing CommonJs modules for browser deployment, enabling developers to split their codebase into manageable bundles for on-demand loading, which ultimately optimizes website performance. The support for diverse file types like JavaScript, JSON, Jade (now Pug), CoffeeScript, and CSS, along with the extensibility through custom loaders, remains consistent between the two. The dependency list, encompassing crucial tools like esprima for JavaScript parsing, sprintf for string formatting, optimist for command-line argument parsing, and loaders for various file types, remains identical, suggesting no significant architectural changes or feature additions. The developer dependencies for testing, mocha and should, are also unchanged.
The key difference lies in the releaseDate. Version 0.4.13 was released on July 10, 2012, while version 0.4.12 was released on July 6, 2012. This four-day gap implies that version 0.4.13 likely incorporates bug fixes or minor improvements discovered and addressed shortly after the release of 0.4.12. For developers, upgrading to version 0.4.13 offers the advantage of potentially benefiting from these immediate post-release corrections, leading to a slightly more stable and reliable development experience. While the core features and dependencies stay the same highlighting the stability of the project early on in its release management, those looking for the most polished experience will appreciate the upgrade.
All the vulnerabilities related to the version 0.4.13 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.