All security reports
OSV security advisory

GHSA-cf2h-pxjq-68xw · minimatch

GHSA-cf2h-pxjq-68xw

Full advisory details, affected packages, severity context, and original source.

Affected technology

minimatchAffected product

Affected versions and fixes

Version information comes from OSV, NVD, and the CVE vendor record. Each source may describe a different package, release branch, or platform.

minimatch · npm

OSV
  • From 11.0.0 (inclusive) · before 11.0.7 (exclusive)

Fixed releases / commits: 11.0.7

Advisory overview

**Summary.** `mergeRows()` (`src/index.ts` ~813-852, introduced in 2e1d896) iterates every part position and, for each row with a wildcard there, copies and joins the whole row to build a Map key. For a pattern made of many wildcard-only path parts this is quadratic in the number of parts, even with a single row. It runs in `new Minimatch`, so any uncached pattern pays it. **Measured** on 11.0.6 with a pattern of `*` parts joined by `/`: 1000 parts 22 ms, 2000 parts 72 ms, 4000 parts 190 ms, 8000 parts 805 ms (about 4× per doubling). Extrapolated to the 64 KB pattern limit (~32,000 parts), one compile blocks for roughly 13 s. A leading brace group of distinct words multiplies the rows and the cost. **Suggested fix.** Build merge keys incrementally (or hash per position) instead of joining the full row at each position, or skip merging when there is only one row; and count the work against `braceExpandMax` or a new limit.

How Cevnitra tracks this

Cevnitra stores this OSV record in the public advisory mirror so scans and watchlists can match GHSA-cf2h-pxjq-68xw against your inventory.

Also known as

CVE-2026-140008

Related references

Your vulnerabilities. One clear dashboard.

Find and review known vulnerabilities across your applications and infrastructure in one dashboard, so your team can see what needs attention and take action to fix it.

Create your account
GHSA-cf2h-pxjq-68xw (OSV) — minimatch: Quadratic compile time for long wildcard patterns (regression | Cevnitra