Vulnerabilities

3 via 6 paths

Dependencies

126

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 3
Status
  • 3
  • 0
  • 0

medium severity

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: minimatch
  • Introduced through: googleapis@173.0.0

Detailed paths

  • Introduced through: githubusermanager@appvia/githubUserManager › googleapis@173.0.0 › googleapis-common@8.0.3 › gaxios@7.1.3 › rimraf@5.0.10 › glob@10.5.0 › minimatch@9.0.9
  • Introduced through: githubusermanager@appvia/githubUserManager › googleapis@173.0.0 › googleapis-common@8.0.3 › google-auth-library@10.5.0 › gcp-metadata@8.1.4 › gaxios@7.1.3 › rimraf@5.0.10 › glob@10.5.0 › minimatch@9.0.9
    Remediation: Upgrade to googleapis@178.1.1.

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

medium severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: glob
  • Introduced through: googleapis@173.0.0

Detailed paths

  • Introduced through: githubusermanager@appvia/githubUserManager › googleapis@173.0.0 › googleapis-common@8.0.3 › gaxios@7.1.3 › rimraf@5.0.10 › glob@10.5.0
  • Introduced through: githubusermanager@appvia/githubUserManager › googleapis@173.0.0 › googleapis-common@8.0.3 › google-auth-library@10.5.0 › gcp-metadata@8.1.4 › gaxios@7.1.3 › rimraf@5.0.10 › glob@10.5.0
    Remediation: Upgrade to googleapis@178.1.1.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the walkCB, walkCB2, walkCBSync, and walkCB2Sync methods of src/walker.ts, where each abort branch calls cb() without returning. An attacker can keep a walk consuming filesystem I/O and CPU after it has already been aborted, by driving a traversal that the caller tries to bound, because execution continues past the abort into processPatterns(), readdirCB(), and recursive walkCB2() calls. This affects only callers that rely on the signal option or AbortSignal.timeout() to cancel a walk, and applies to both glob() and globStream().

Remediation

Upgrade glob to version 13.0.7, 14.0.2 or higher.

References

medium severity
new

Improper Encoding or Escaping of Output

  • Vulnerable module: minimatch
  • Introduced through: googleapis@173.0.0

Detailed paths

  • Introduced through: githubusermanager@appvia/githubUserManager › googleapis@173.0.0 › googleapis-common@8.0.3 › gaxios@7.1.3 › rimraf@5.0.10 › glob@10.5.0 › minimatch@9.0.9
  • Introduced through: githubusermanager@appvia/githubUserManager › googleapis@173.0.0 › googleapis-common@8.0.3 › google-auth-library@10.5.0 › gcp-metadata@8.1.4 › gaxios@7.1.3 › rimraf@5.0.10 › glob@10.5.0 › minimatch@9.0.9
    Remediation: Upgrade to googleapis@178.1.1.

Overview

minimatch is a minimal matching utility.

Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via minimatch.escape() in src/escape.ts, which fails to neutralize four classes of special input before the result is used as a glob pattern. A leading ! passes through unescaped and becomes a negation operator, causing the pattern to match every path except the intended literal. A leading # passes through and becomes a comment, causing the pattern to match nothing. When the escaped output is combined with a brace group (either caller-supplied or present in the user text itself), brace-expansion collapses the \\ escape sequence and reactivates the following magic character (such as *), widening the match. With { windowsPathsNoEscape: true, magicalBraces: true }, brace-literal encoding using character classes ([{]) is misinterpreted by brace-expansion, producing patterns that match unintended strings and fail to match the intended literal. Applications that pass attacker-controlled text through escape() and use the result for authorization, filtering, or path-selection decisions may grant or deny access to unintended paths.

Workaround

Until upgrading, the following per-behavior mitigations can be applied (each measured on 11.0.5):

  • Behaviors 1 and 2 (leading ! and #): pass { nonegate: true, nocomment: true } when matching escaped patterns.
  • Behavior 3 (escaped backslash plus brace group): do not combine escaped text with a brace group, and use { magicalBraces: true } so user braces are escaped. Alternatively, pass nobrace: true to stop the over-match, but note that the caller's brace group then also becomes literal.
  • Behavior 4 (windowsPathsNoEscape + magicalBraces): pass nobrace: true when matching.

Remediation

Upgrade minimatch to version 11.0.8 or higher.

References