Asymmetric Resource Consumption (Amplification) Affecting minimatch package, versions <11.0.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.29% (22nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-MINIMATCH-22111072
  • published1 Nov 2026
  • disclosed27 Oct 2026
  • creditReid Downing

Introduced: 27 Oct 2026

NewCVE-2026-118764  (opens in a new tab)
CWE-405  (opens in a new tab)

How to fix?

Upgrade minimatch to version 11.0.1 or higher.

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.

CVSS Base Scores

version 4.0
version 3.1