Webpack version 0.5.2 arrived on August 7, 2012, just a day after its predecessor, version 0.5.1. Both versions, crafted by Tobias Koppers, serve the same primary purpose: packaging CommonJs and AMD modules for browser deployment, empowering developers to split codebases into manageable bundles that can be loaded on demand. This functionality significantly enhances web application performance by reducing initial load times.
The core features remain consistent between the two versions. Both support a wide array of file types - Javascript, JSON, Jade, CoffeeScript, and CSS – right out of the box. They also offer extendability via custom loaders, facilitating the seamless integration of other file formats and preprocessing steps.
A notable constant across both is the dependency list, including crucial libraries such as esprima for JavaScript parsing, sprintf for string formatting, optimist for command-line argument parsing, and uglify-js for code minification. Also the various loaders (css-loader, raw-loader, etc.) remains untouched. Developers can expect identical build processes and similar tooling availability when migrating between these specific adjacent versions.
The key difference comes in their release dates. Version 0.5.2 has a releaseDate of "2012-08-07T18:54:49.051Z" while version 0.5.1 has a releaseDate of "2012-08-06T20:33:29.813Z". This suggests that version 0.5.2 might contain minor bug fixes, performance enhancements, or very small feature additions implemented in the space of one day of work which will not affect the dependency list. Therefore a developer looking to upgrade between the two version, must consider there may me a few bug fixes here and there.
All the vulnerabilities related to the version 0.5.2 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.