Vulnerabilities

1 via 2 paths

Dependencies

23

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
Status
  • 1
  • 0
  • 0

medium severity
new

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: minimatch
  • Introduced through: filehound@1.17.6

Detailed paths

  • Introduced through: @seneca/maintain@senecajs/seneca-maintain › filehound@1.17.6 › file-js@0.3.0 › minimatch@3.1.5
  • Introduced through: @seneca/maintain@senecajs/seneca-maintain › filehound@1.17.6 › minimatch@5.1.9
    Remediation: Upgrade to filehound@2.0.0.

Overview

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.

Remediation

Upgrade minimatch to version 11.0.1 or higher.

References