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

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). Vendors: Isaacs, 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
    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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.