CVE-2026-118764: minimatch has potential denial of service via globparts amplification

Published Oct 29, 2026
·
Updated

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.

Other sources

minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. Starting in 7.0.0 and prior to 11.0.1, src/index.ts implements firstPhasePreProcess() so that, at optimizationLevel 2 or higher, it repeatedly expands attacker-controlled /.. pattern segments inside a fixpoint loop, allowing generated globParts entries to be processed and expanded again. secondPhasePreProcess() then compares the expanded entries pairwise, so a short malicious glob can cause excessive CPU and memory consumption during pattern compilation. This issue is fixed in version 11.0.1.

— NVD

Affected Software

13 affected componentsFixes available
ubuntu/node-minimatch*
ubuntu/node-minimatch*
ubuntu/node-minimatch*
ubuntu/node-minimatch*
ubuntu/node-minimatch*
ubuntu/node-minimatch*
ubuntu/node-minimatch*
ubuntu/node-minimatch*
debian/node-minimatch*
debian/node-minimatch*
debian/node-minimatch*
debian/node-minimatch<=5.1.1+~5.1.2-1, <=9.0.3-6, <=9.0.7-2
npm/minimatch>=7.0.0<11.0.1
11.0.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/minimatch to a version that resolves this vulnerability.

    Fixed in 11.0.1
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 11.0.1

Event History

Oct 29, 2026
CVE Published
via MITRE·05:07 PM
Data Sourced
via MITRE·05:07 PM
DescriptionWeakness
Data Sourced
via OSV·05:07 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:18 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·06:15 PM
DescriptionSeverityAffected Software
Oct 30, 2026
Advisory Published
via GitHub·11:09 PM
Data Sourced
via GitHub·11:09 PM
DescriptionWeaknessAffected Software
Nov 1, 2026
Exploit Published
via GitHub·12:24 AM
Nov 5, 2026
Data Sourced
via OSV·11:47 AM
Affected Software

Frequently Asked Questions

1

Who is exposed to this denial-of-service issue?

Applications using minimatch before 11.0.1 are exposed when they compile attacker-controlled glob patterns with optimizationLevel set to 2 or higher. The affected software entry is debian/node-minimatch.

2

What does an attacker need to exploit the issue?

An attacker needs to supply a malicious glob containing **/.. pattern segments. No authentication or user interaction is required according to the provided severity vector.

3

What is the impact of a successful attack?

A short crafted glob can trigger repeated expansion and pairwise processing during pattern compilation, causing excessive CPU and memory consumption. This can result in denial of service.

4

What is the available fix?

Upgrade minimatch to version 11.0.1, which fixes the preprocessing behavior that permits globParts amplification.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203