Browserify version 2.2.6 introduces subtle but important changes compared to its predecessor, 2.2.5, impacting developers who rely on this popular tool for bundling Node.js-style modules for the browser. A key distinction lies in the updated dependency on module-deps, which jumps from version ~0.2.6 in 2.2.5 to ~0.4.3 in the newer release. This upgrade likely incorporates bug fixes, performance improvements, and potentially new features within the module-deps dependency that directly affect how Browserify resolves and bundles module dependencies.
Developers should investigate the changelog for module-deps version 0.4.3 to understand the specific changes included. Another notable factor is the release date difference, with version 2.2.6 being released a few days after 2.2.5. This suggests that the newer version might address immediate bugs or security concerns identified in the previous release. Both versions share identical dependencies for core functionalities like through, duplexer, and optimist, as well as development dependencies for testing and building. This implies the fundamental architecture and testing methodologies remained constant. The author and repository information, license, and the insert-module-globals dependency also remain consistent, pointing towards a focused update rather than a major overhaul. For those using Browserify, upgrading to 2.2.6 is recommended to benefit from the updated dependency and potential bug fixes, ensuring more reliable and efficient module bundling with the same familiar developer experience.
All the vulnerabilities related to the version 2.2.6 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.