Webpack versions 0.4.23 and 0.4.24, both released in 2012, are early iterations of the popular module bundler designed for packaging CommonJs modules for browser deployment. These versions allow developers to split their codebases into multiple bundles, optimizing loading times by delivering code on demand. Both versions support a range of file types, including JavaScript, JSON, Jade, CoffeeScript, and CSS, out of the box, with extensibility provided through custom loaders.
The core functionalities and dependencies remain consistent between these two versions. Key dependencies include esprima for JavaScript parsing, sprintf for string formatting, optimist for command-line argument parsing, and uglify-js for minifying JavaScript code. A suite of loaders - css-loader, raw-loader, val-loader, file-loader, jade-loader, json-loader, less-loader, style-loader, bundle-loader, coffee-loader, and script-loader - are incorporated to seamlessly handle various file types within the bundling process, along with enhanced-require. Development dependencies on mocha and should facilitate testing.
The primary difference lies in the release dates: version 0.4.23 was released on July 30, 2012, while version 0.4.24 followed shortly after on August 5, 2012. While the changelog (not included in the provided data) would offer a clearer picture of specific bug fixes and minor improvements, the rapid succession suggests the latter likely addresses minor issues or refinements present in the former. For developers, upgrading to version 0.4.24 potentially provides a more stable and polished experience, building upon the established features of 0.4.23. Both versions are licensed under MIT and authored by Tobias Koppers.
All the vulnerabilities related to the version 0.4.24 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.