Webpack version 0.4.12, released on July 6, 2012, is a minor update to the popular CommonJS module bundler, building upon the foundation laid by version 0.4.11, which was released just two days prior on July 4, 2012. Both versions share an identical core functionality: packing CommonJS modules for browser deployment and enabling code splitting into bundles loaded on demand, a feature crucial for optimizing website loading times and improving user experience. They both provide out-of-the-box support for a wide array of file types, including JavaScript, JSON, Jade, CoffeeScript, and CSS, and extend their parsing capabilities further through custom loaders.
The dependency lists for both versions are also mirrored, relying on key packages like Esprima for JavaScript parsing, sprintf for string formatting, Optimist for command-line argument parsing, and UglifyJS for code minification. A suite of loaders – including css-loader, raw-loader, and jade-loader - remains unchanged between the releases. Similarly, the development dependencies for testing (Mocha and Should) are consistent.
The core difference lies only in bug fixes and improvements implemented during the two-day span between releases. While the specifics of these fixes are unavailable without examining the commit history, upgrading from 0.4.11 to 0.4.12 likely provides a more stable and refined experience.
For developers seeking a historical perspective on webpack or needing to support legacy environments, these versions, despite their age, showcase the project's early capabilities. Consider upgrading to latest stable version ensuring access to the newest features and security enhancements.
All the vulnerabilities related to the version 0.4.12 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.