Inefficient Algorithmic Complexity Affecting minimatch package, versions >=11.0.0 <11.0.7


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.84% (59th 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-23184405
  • published1 Dec 2026
  • disclosed30 Nov 2026
  • crediticguner

Introduced: 30 Nov 2026

NewCVE-2026-140008  (opens in a new tab)
CWE-407  (opens in a new tab)

How to fix?

Upgrade minimatch to version 11.0.7 or higher.

Overview

minimatch is a minimal matching utility.

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via mergeRows() in src/index.ts, which repeatedly copies and joins an entire pattern row for each wildcard position when building merge keys, causing quadratic compilation time for long wildcard-only path patterns. An attacker who can supply uncached patterns to new Minimatch or any other compiling entry point can block the JavaScript event loop, with brace-generated rows further multiplying the work and amplifying the impact.

CVSS Base Scores

version 4.0
version 3.1