org.mvnpm:glob@13.0.5

  • latest version

    14.0.3

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:glob 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
    Allocation of Resources Without Limits or Throttling

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in src/ignore.ts, the Ignore class constructs its own minimatch options without including a braceExpandMax limit, causing ignore patterns to fall back to minimatch's default of 100,000 instead of the 10,000 cap applied to regular patterns. Both code paths force optimizationLevel: 2, which is the precondition for minimatch's O(n²) globparts amplification in secondPhasePreProcess(). An attacker who can supply ignore patterns can pass a brace-expansion payload that is rejected in milliseconds as a regular pattern but consumes several seconds of CPU when processed as an ignore pattern, blocking the Node.js event loop.

    How to fix Allocation of Resources Without Limits or Throttling?

    A fix was pushed into the master branch but not yet published.

    [13.0.5,)
    • M
    Allocation of Resources Without Limits or Throttling

    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().

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:glob to version 14.0.3 or higher.

    [10.2.6,14.0.3)