Webpack version 0.3.10 represents a minor update to the module bundler, succeeding version 0.3.9. Both versions offer the core functionality of packing CommonJS modules for browser use, allowing developers to split codebases into smaller bundles loaded on demand, which is key for performance optimization. They both handle various file types like JavaScript, JSON, Jade, CoffeeScript, and CSS, with extensibility for more formats via loaders. The dependency structure is identical, relying on tools like Esprima for JavaScript parsing, sprintf for string formatting, Optimist for argument parsing, and UglifyJS for code minification. Essential loaders like css-loader, raw-loader, jade-loader, json-loader, less-loader, style-loader, coffee-loader, and script-loader remain consistent, meaning existing configurations should largely be compatible. The development dependency on Vows suggests a continued focus on testing.
The primary difference lies in the release date, with version 0.3.10 released on May 2, 2012, a single day after 0.3.9. This incremental change often indicates bug fixes, minor performance improvements, or subtle adjustments that enhance stability. While the exact changes are not specified in the metadata, developers upgrading should anticipate a more polished experience. Given Webpack's role in streamlining front-end development workflows, even small improvements can significantly impact build times and overall efficiency. The consistency across dependencies suggests a low-risk upgrade path focused on refining existing features rather than introducing breaking changes.
All the vulnerabilities related to the version 0.3.10 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.