HIGHCVSS v4 8.7Vulnerability

CVE-2026-140008

**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.

Properties

Severity
high
Summary
minimatch: Quadratic compile time for long wildcard patterns (regression in 11.0.0 `mergeRows`)
Nvd fetched at
2026-12-02T06:37:54.190518+00:00
Epss score
0.00527
Cvss severity
HIGH
Cvss score
8.7
Retrieved at
2026-12-02T06:40:14+00:00
Ghsa published
2026-12-01T18:00:15Z
Source url
https://github.com/advisories/GHSA-cf2h-pxjq-68xw
Ghsa updated
2026-12-01T18:00:16Z
Ghsa id
GHSA-cf2h-pxjq-68xw
Last source
FIRST EPSS
Score
8.7
Cvss version
4.0
Cve id
CVE-2026-140008
Cvss vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
First seen by Signal
2026-11-30T22:28:40+00:00
Name
CVE-2026-140008
Is ghsa only
false
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Related Entities (3)

AFFECTS (1)

→[Software]npm/minimatch

HAS_WEAKNESS (1)

VULNERABLE_TO (1)

←[Software]npm/minimatch

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-140008 (CVSS v4 8.7) — Ninja Signal Threat Intelligence | Ninja Signal