Vulnerability GHSA-g3hv-75wg-m249

Medium Risk
MEDIUM RISK
CVSS Score: 6.0
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
4 hours ago
October 30, 2026 at 11:09 PM UTC
minimatch has potential denial of service via globparts amplification
0.0.1 - 11.0.0
0.0.1 - 11.0.0

Summary

minimatch has potential denial of service via globparts amplification

Details

minimatch 10.2.6 contains an attacker-controlled pattern amplification in firstPhasePreProcess() when optimizationLevel >= 2.

researcher: Reid Downing (b1nv0id) files:

  • src/index.ts: 690-770
  • src/index.ts: 780-796

issue: input-controlled growth of globParts during first-phase preprocessing, followed by quadratic second-phase processing.

the **/../ transformation clones a globparts entry and appends the clone to the same globparts array:

parts.splice(gs, 1)
const other = parts.slice(0)
other[gs] = '**'
globParts.push(other)

this occurs inside a do...while (didSomething) fixpoint loop, allowing generated entries to be processed again.

the expanded globparts array is subsequently processed by secondPhasePreProcess(), which performs pairwise comparisons:

for (let i = 0; i < globParts.length - 1; i++) {
  for (let j = i + 1; j < globParts.length; j++) {
    this.partsMatch(...)
  }
}

an attacker who can supply a glob pattern can therefore cause additional pattern entries to be generated during preprocessing, followed by quadratic pairwise processing, resulting in excessive cpu and memory consumption.

Related Vulnerabilities

Other vulnerabilities affecting the same packages

High Risk
8 months ago
minimatch has ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments
0.0.1 - 3.1.2 and 4.0.0 - 4.2.4 and 5.0.0 - 5.1.7 and 6.0.0 - 6.2.1 and 7.0.0 - 7.4.7 and 8.0.0 - 8.0.5 and 9.0.0 - 9.0.6 and 10.0.0 - 10.2.2 GHSA-7r86-cg39-jmmj
0.0.1 - 3.1.2 and 4.0.0 - 4.2.4 and 5.0.0 - 5.1.7 and 6.0.0 - 6.2.1 and 7.0.0 - 7.4.7 and 8.0.0 - 8.0.5 and 9.0.0 - 9.0.6 and 10.0.0 - 10.2.2 GHSA-7r86-cg39-jmmj
High Risk
8 months ago
minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions
0.0.1 - 3.1.3 and 4.0.0 - 4.2.4 and 5.0.0 - 5.1.7 and 6.0.0 - 6.2.1 and 7.0.0 - 7.4.7 and 8.0.0 - 8.0.5 and 9.0.0 - 9.0.6 and 10.0.0 - 10.2.2 GHSA-23c5-xmqv-rm74
0.0.1 - 3.1.3 and 4.0.0 - 4.2.4 and 5.0.0 - 5.1.7 and 6.0.0 - 6.2.1 and 7.0.0 - 7.4.7 and 8.0.0 - 8.0.5 and 9.0.0 - 9.0.6 and 10.0.0 - 10.2.2 GHSA-23c5-xmqv-rm74
High Risk
8 months ago
minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern
0.0.1 - 3.1.2 and 4.0.0 - 4.2.3 and 5.0.0 - 5.1.6 and 6.0.0 - 6.2.0 and 7.0.0 - 7.4.6 and 8.0.0 - 8.0.4 and 9.0.0 - 9.0.5 and 10.0.0 - 10.2.0 GHSA-3ppc-4f35-3m26
0.0.1 - 3.1.2 and 4.0.0 - 4.2.3 and 5.0.0 - 5.1.6 and 6.0.0 - 6.2.0 and 7.0.0 - 7.4.6 and 8.0.0 - 8.0.4 and 9.0.0 - 9.0.5 and 10.0.0 - 10.2.0 GHSA-3ppc-4f35-3m26
High Risk
4 years ago
minimatch ReDoS vulnerability
0.0.1 - 3.0.4 GHSA-f8q6-p94x-37v3
0.0.1 - 3.0.4 GHSA-f8q6-p94x-37v3
High Risk
8 years ago
Regular Expression Denial of Service in minimatch
0.0.1 - 3.0.0 GHSA-hxm2-r34f-qmc5
0.0.1 - 3.0.0 GHSA-hxm2-r34f-qmc5
View all vulnerabilities for these packages

Impacted packages

Timeline

Published
4 hours ago
October 30, 2026 at 11:09 PM UTC
Fixed (11.0.1)
3 days ago
October 27, 2026 at 10:26 PM UTC
Last Modified
4 hours ago
October 30, 2026 at 11:15 PM UTC