Browserify versions 1.7.4 and 1.7.5 are closely related releases of a tool allowing developers to use require() in the browser, enabling modular JavaScript development with npm packages and directories. Both share identical core functionalities, including the core require() implementation via modules like nub, module resolution using resolve, command-line argument parsing with optimist, common directory determination with commondir, dependency analysis with detective, and CoffeeScript support through coffee-script. The development dependencies for testing and building are also consistent: seq, tap, jade, dnode, jsdom, connect, hashish, backbone, traverse, and jquery-browserify are used in both versions.
The primary difference lies in the releaseDate: version 1.7.5 was published approximately five hours after version 1.7.4 on October 27, 2011. While the package manifests don't indicate any code-level changes, version 1.7.5 might include very minor updates such as dependency upgrades, bug fixes, or documentation improvements not reflected in the dependencies or devDependencies.
For developers, this means that upgrading from 1.7.4 to 1.7.5 is generally a low-risk change, assuming the application works correctly with 1.7.4. Browserify empowers frontend developers to write organized and maintainable code by leveraging existing npm modules and applying familiar Node.js patterns to their browser-based JavaScript. The tool encourages dependency management.
All the vulnerabilities related to the version 1.7.5 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.