Browserify is a powerful tool that allows developers to use Node.js-style require() statements in browser-side JavaScript code, enabling modularity and code reuse. Versions 1.1.0 and 1.1.1 of Browserify share a common core, both designed to bundle JavaScript directories and npm modules for use in web browsers. They list the same dependencies: "resolve", "detective", and "coffee-script", ensuring consistent module resolution and code analysis capabilities. Similarly, their development dependencies, including tools like "seq", "jade", "dnode", and "jsdom," are identical, indicating a stable development and testing environment across both versions.
However, version 1.1.1, released on June 21, 2011, at 23:30:34 UTC, represents a subtle update compared to version 1.1.0, released earlier that same day at 11:06:25 UTC. While the core functionality and dependencies remain unchanged, the release of 1.1.1 suggests a bug fix or minor enhancement implemented within that ~12-hour window. For developers, this implies that upgrading to 1.1.1 is likely a safe and recommended practice, ensuring they benefit from the latest stability improvements. Since the changelog is not provided, the nature of the change remains unknown, but upgrading to the latest version is generally considered a best practice to avoid potential known bugs in version 1.1.0. Both versions maintain the same MIT/X11 license and are authored by James Halliday, pointing to continuous improvements.
All the vulnerabilities related to the version 1.1.1 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.