Webpack version 0.3.11 is a minor release following 0.3.10 in the early days of this powerful module bundler. Both versions offer the core functionality of packing CommonJS modules for browser deployment, enabling developers to split their codebases into manageable bundles for on-demand loading, which significantly improves initial page load times and enhances user experience. The key functionalities remain consistent: support for various file types like JavaScript, JSON, Jade (now Pug), CoffeeScript, and CSS out of the box, extendable via custom loaders for practically any file format. Dependencies remain identical, encompassing essential tools like Esprima for JavaScript parsing, Uglify-JS for minification, and various loaders such as css-loader, raw-loader, jade-loader, json-loader, less-loader, style-loader, coffee-loader, and script-loader, providing a versatile environment for front-end development. Similarly, development dependencies rely on Vows for testing.
The crucial change between these versions lies in the release date. Version 0.3.11 was released just moments after 0.3.10 on May 2nd, 2012. This very short time range likely indicates a quick fix for a bug or a minor improvement missed in the initial 0.3.10 release. While the specific fix isn't detailed here, it's important for developers using these older versions to prefer 0.3.11, assuming it addresses a potential stability issue. Developers should also consider migrating to more recent webpack versions to benefit from years of improvements, performance enhancements, and new features.
All the vulnerabilities related to the version 0.3.11 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.