minimatch@2.0.10

a glob matcher in javascript

  • latest version

    11.0.5

  • latest non vulnerable version

  • first published

    15 years ago

  • latest version published

    2 days ago

  • licenses detected

    • >=2.0.8 <10.1.0
  • Direct Vulnerabilities

    Known vulnerabilities in the minimatch package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Asymmetric Resource Consumption (Amplification)

    minimatch is a minimal matching utility.

    Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) in the firstPhasePreProcess method, where the **/.. transform clones a globParts entry and pushes the clone back onto the same array inside a do...while (didSomething) fixpoint loop. An attacker can exhaust CPU and memory by supplying a glob pattern whose **/.. sequences regenerate entries during preprocessing, which secondPhasePreProcess then compares in an O(n^2) pairwise partsMatch pass over the expanded set. Exploitation requires the pattern to be parsed with optimizationLevel set to 2 or higher.

    How to fix Asymmetric Resource Consumption (Amplification)?

    Upgrade minimatch to version 11.0.1 or higher.

    <11.0.1
    • H
    Inefficient Algorithmic Complexity

    minimatch is a minimal matching utility.

    Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the matchOne function. An attacker can cause significant delays in processing and stall the event loop by supplying specially crafted glob patterns containing multiple non-adjacent GLOBSTAR segments.

    How to fix Inefficient Algorithmic Complexity?

    Upgrade minimatch to version 3.1.3, 4.2.5, 5.1.8, 6.2.2, 7.4.8, 8.0.6, 9.0.7, 10.2.3 or higher.

    <3.1.3>=4.0.0 <4.2.5>=5.0.0 <5.1.8>=6.0.0 <6.2.2>=7.0.0 <7.4.8>=8.0.0 <8.0.6>=9.0.0 <9.0.7>=10.0.0 <10.2.3
    • H
    Regular Expression Denial of Service (ReDoS)

    minimatch is a minimal matching utility.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the AST class, caused by catastrophic backtracking when an input string contains many * characters in a row, followed by an unmatched character.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade minimatch to version 3.1.3, 4.2.4, 5.1.7, 6.2.1, 7.4.7, 8.0.5, 9.0.6, 10.2.1 or higher.

    <3.1.3>=4.0.0 <4.2.4>=5.0.0 <5.1.7>=6.0.0 <6.2.1>=7.0.0 <7.4.7>=8.0.0 <8.0.5>=9.0.0 <9.0.6>=10.0.0 <10.2.1
    • M
    Regular Expression Denial of Service (ReDoS)

    minimatch is a minimal matching utility.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the braceExpand function in minimatch.js.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade minimatch to version 3.0.5 or higher.

    <3.0.5
    • H
    Regular Expression Denial of Service (ReDoS)

    minimatch is a minimal matching utility.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via complicated and illegal regexes.

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade minimatch to version 3.0.2 or higher.

    <3.0.2
    • H
    Regular Expression Denial of Service (ReDoS)

    minimatch is a minimal matching utility.

    Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS).

    How to fix Regular Expression Denial of Service (ReDoS)?

    Upgrade minimatch to version 3.0.2 or higher.

    <3.0.2