Browserify version 2.2.1 is a minor patch release following version 2.2.0 of this popular tool that empowers developers to write Node.js-style modules that run in the browser. Both versions share the same core functionality, allowing you to use require() in your client-side JavaScript, effectively bundling all your dependencies into a single file for optimized delivery.
Significant dependencies remain consistent between the two versions. Both leverage tools like through for stream transformations, duplexer for creating duplex streams, and inherits for classical inheritance patterns. Fundamental components such as optimist for command-line argument parsing and JSONStream for efficient JSON handling are also unchanged. The module dependency resolver (module-deps), the browser code packer (browser-pack), syntax error checker (syntax-error), module resolver (browser-resolve), and global variable injector (insert-module-globals) are identical, so there's no significant change to the way modules are discovered, bundled, or handled.
Developer dependencies such as seq for sequence operations, tap for testing, dnode for RPC, mkdirp for directory creation, and backbone for testing frontend frameworks are likewise untouched.
The notable difference lies in the release date and likely includes very minor bug fixes or internal optimizations made between February 24th, 2013 at 06:58:41 UTC and February 24th, 2013 at 07:22:01 UTC. For most developers, upgrading from 2.2.0 to 2.2.1 would be a low-risk way to ensure they're running the most recent, stable version with potentially critical but subtle improvements. Because the difference is so small, users experiencing issues with 2.2.0 are encouraged to upgrade.
All the vulnerabilities related to the version 2.2.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.
Potential for Script Injection in syntax-error
Versions of syntax-error
prior to 1.1.1 are affected by a cross-site scripting vulnerability which may allow a malicious file to execute code when browserified.
Update to version 1.1.1 or later.