---
title: "GHSA-g3hv-75wg-m249: minimatch has potential denial of service via globparts amplification"
description: "Moderate severity. minimatch has potential denial of service via globparts amplification. Affects minimatch; fixed in 11.0.1."
url: https://inlinr.com/advisories/GHSA-g3hv-75wg-m249
lang: en
---

[Packages](https://inlinr.com/packages) / [minimatch](https://inlinr.com/packages/minimatch) / [Security](https://inlinr.com/packages/minimatch/security)

Moderate Vulnerability GHSA-g3hv-75wg-m249 CVE-2026-118764 Published 30 Oct 2026

# minimatch has potential denial of service via globparts amplification

Your version 

Affected releases · [minimatch](https://inlinr.com/packages/minimatch)

- 11.x 11.0.0 Fixed in 11.0.1
- 10.x 10.0.0 – 10.2.6 No fix on this line yet
- 9.x 9.0.0 – 9.0.9 No fix on this line yet
- 8.x 8.0.0 – 8.0.7 No fix on this line yet
- 7.x 7.0.0 – 7.4.9 No fix on this line yet

On 11.x, the newest line:

```
npm install minimatch@11.0.1
```

Every release on a timeline

11.x 

1. Affected

11.0.0  
1 release
2. Fixed

11.0.1 – 11.0.9  
9 releases, latest

10.x 

1. Affected

10.0.0 – 10.2.6  
15 releases

9.x 

1. Affected

9.0.0 – 9.0.9  
10 releases

8.x 

1. Affected

8.0.0 – 8.0.7  
8 releases

7.x 

1. Affected

7.0.0 – 7.4.9  
19 releases

155 stable releases of minimatch, oldest to newest, one row per major.

## What happens

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.

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: low

CVSS:4.0/​AV:N/​AC:L/​AT:N/​PR:N/​UI:N/​VC:N/​VI:N/​VA:L/​SC:N/​SI:N/​SA:N

## References

- [Reference](https://github.com/isaacs/minimatch/security/advisories/GHSA-g3hv-75wg-m249 "https://github.com/isaacs/minimatch/security/advisories/GHSA-g3hv-75wg-m249")  
github.com/isaacs/minimatch/security/advisories…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-118764 "https://nvd.nist.gov/vuln/detail/CVE-2026-118764")  
nvd.nist.gov/vuln/detail/CVE-2026-118764
- [Fix commit](https://github.com/isaacs/minimatch/commit/297b6c1a01f2410b3ba1ebed14ba222d0c3c1033 "https://github.com/isaacs/minimatch/commit/297b6c1a01f2410b3ba1ebed14ba222d0c3c1033")  
297b6c1
- [Fix commit](https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8 "https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8")  
77a0f5c
- [Fix commit](https://github.com/isaacs/minimatch/commit/fd0b3ab9cbc5bf1aff1c99f1f46e413c2b3340da "https://github.com/isaacs/minimatch/commit/fd0b3ab9cbc5bf1aff1c99f1f46e413c2b3340da")  
fd0b3ab
- [Package](https://github.com/isaacs/minimatch "https://github.com/isaacs/minimatch")  
github.com/isaacs/minimatch
- [Reference](https://github.com/isaacs/minimatch/releases/tag/v11.0.1 "https://github.com/isaacs/minimatch/releases/tag/v11.0.1")  
github.com/isaacs/minimatch/releases/tag/v11.0.1

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
