# CVE-2026-118764: minimatch ReDoS in glob pattern compilation

Source: https://junglewise.ai/threats/cve-2026-118764-minimatch-is-a-minimal-matching-utility-for-converting-glob  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-29. Updated: 2026-10-29  
License: CC BY 4.0 with a link back

CVE-2026-118764 · Severity: medium · CVSS 4 · Published 2026-10-29

minimatch is a JavaScript library that converts glob patterns (like file path wildcards) into regular expressions for pattern matching. A malicious glob pattern can cause the library to consume excessive CPU and memory during compilation, potentially causing a denial of service when applications process untrusted glob patterns.

Technologies: [minimatch (npm)](https://junglewise.ai/threats/technologies/minimatch). Vendors: [Isaacs](https://junglewise.ai/threats/vendors/isaacs), [npm](https://junglewise.ai/threats/vendors/npm).

## Quick answers

**Is CVE-2026-118764 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-118764 being exploited in the wild.

**How severe is CVE-2026-118764?** Medium severity, with a CVSS score of 4, published 29 October 2026.

**Which products and versions are affected?** Isaacs Minimatch before 11.0.1; minimatch (npm) < 11.0.1, SEMVER:introduced=0,fixed=11.0.1.

**Is there a fix for CVE-2026-118764?** Yes. minimatch (npm): upgrade to 11.0.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-118764 attacked?** It is attacked over the network or with local access, in a software library.

**Am I affected by CVE-2026-118764?** Check whether you run Isaacs Minimatch or minimatch (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- minimatch (npm): upgrade to 11.0.1 or later

  ```sh
  npm install minimatch@11.0.1
  ```


## Technical details

A ReDoS (Regular Expression Denial of Service) vulnerability exists in the firstPhasePreProcess() function, where attacker-controlled **/../ pattern segments are repeatedly expanded in a fixpoint loop at optimization levels 2 or higher, generating excessive globParts entries. The secondPhasePreProcess() function then performs pairwise comparison of these entries, leading to quadratic CPU and memory consumption. The vulnerability requires the application to process attacker-supplied glob patterns with high optimization levels enabled.

## Affected products

- isaacs minimatch before 11.0.1

## Identifiers

- CVE-2026-118764
- GHSA-g3hv-75wg-m249

## Timeline

- 2026-10-29: disclosed
- 2026-10-27: patched: Fix commit dated before disclosure

## References

- [https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8](https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8)
- [https://github.com/isaacs/minimatch/releases/tag/v11.0.1](https://github.com/isaacs/minimatch/releases/tag/v11.0.1)

## Related threats

- [minimatch ReDoS in matchOne via multiple non-adjacent GLOBSTAR segments](https://junglewise.ai/threats/cve-2026-27903-minimatch-redos-in-matchone-via-multiple-non-adjacent-globstar)
- [minimatch ReDoS vulnerability in braceExpand](https://junglewise.ai/threats/cve-2022-3517-minimatch-redos-vulnerability-in-braceexpand)
- [minimatch regular expression denial of service](https://junglewise.ai/threats/cve-2016-10540-minimatch-regular-expression-denial-of-service)
