Browserify is a powerful tool that lets you use Node.js-style require() statements in your front-end JavaScript code, making it easier to organize and manage complex client-side applications. Versions 1.7.1 and 1.7.2 share the same core functionality, providing a browser-compatible way to bundle your JavaScript and its dependencies. Both versions support crucial features like using npm modules directly in your browser code. This feature is powered by dependencies like "resolve", which helps Browserify locate modules, and "detective", which analyzes your code to find require() calls. Common dependencies for both versions also include "optimist" for command-line argument parsing and "coffee-script" support for those using CoffeeScript. They depend on the same core dependencies, ensuring a consistent experience for developers relying on the core module resolution.
The difference between these two versions is minimal from a code perspective. The release date of version 1.7.2 is slightly later than 1.7.1, suggesting a minor patch or update. Developers already using 1.7.1 faced no significant change, while new users benefited from the most recent bug fixes. Both versions use the same set of development dependencies too, meaning tools like "seq" for sequential operations in tests, "tap" for testing, "jade" for templating, "dnode" for RPC, "jsdom" for DOM manipulation in tests, "connect" for serving static files, "hashish" for data manipulation, "backbone" for front-end framework support, "traverse" for object traversal, and "jquery-browserify" demonstrate that the library provides support for front-end application development and testing. The upgrade from 1.7.1 to 1.7.2 was probably not drastic, but a good starting point for those adopting Browserify.
All the vulnerabilities related to the version 1.7.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.