Browserify version 1.10.0 introduces notable enhancements and dependency adjustments compared to the preceding stable release, version 1.9.4, offering developers improved functionality for browser-side module management. Both versions remain committed to providing a require() function for JavaScript directories and npm modules within the browser environment, simplifying front-end development workflows.
A key change in version 1.10.0 is the updated dependency specifications. Specifically, resolve is now constrained to version "~0.2.0", while in 1.9.4 it allowed a broader range ">0.0.4 <0.1." Also, version 1.10.0 adds vm-browserify and http-browserify as core dependencies, enriching the library's capabilities by providing browser-compatible replacements for Node.js's vm and http modules. Conversely, coffee-script has a tighter version constraint of "~1.1.1" in 1.10.0 compared to ">=1.1.1 <1.2" in 1.9.4.
Furthermore, there are shifts in the devDependencies. Version 1.10.0 drops jsdom, a testing framework, but introduces ecstatic, a simple static file server. These adjustments showcase a refinement in the tools utilized for testing and development. Developers migrating to version 1.10.0 should carefully examine the impact of these altered dependencies on their projects and existing code. The inclusion of vm-browserify and http-browserify might simplify the process of using Node.js core modules within the browser, while the modified version constraints of the other core dependencies require scrutiny to avoid compatibility issues.
All the vulnerabilities related to the version 1.10.0 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.