Read the docs

Global pattern cache in minimatch retains large expansions, exhausting memory

Priority MEDIUM 42CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-400.

Summary

The minimatch package from isaacs, versions from 11.0.3 before 11.0.8, has a global pattern cache that retains large glob expansions without a size limit. The top-level minimatch() function caches compiled objects by count only, so an application accepting many unique attacker-controlled glob patterns can exhaust memory and terminate. This is classified as CWE-400, Uncontrolled Resource Consumption. A remote unauthenticated attacker can cause a denial of service, and direct construction with new Minimatch() is not affected.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 11.0.3 until 11.0.8, the top-level minimatch() function stores compiled Minimatch objects in a module-level 256-entry Map whose entries are bounded by count but not by retained expansion weight below the braceExpandMax ceiling. An application that accepts unique attacker-controlled glob patterns can retain objects containing up to 100,000 expanded rows per entry, causing memory exhaustion and process termination; direct construction with new Minimatch() is not affected by this cache behavior. This issue is fixed in version 11.0.8.

Why it matters now

Fix Fixed minimatch (isaacs): 11.0.8

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
isaacsminimatch11.0.3 to before 11.0.811.0.8Patch availableCNA
  • minimatch Vendorisaacs Affected 11.0.3 to before 11.0.8 Fixed in 11.0.8 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:minimatch_project:minimatch:*:*:*:*:*:*:*:*——Minimatch Project
  • cpe:2.3:a:minimatch_project:minimatch:*:*:*:*:*:*:*:* Versions — — ·Minimatch Project

Remediation

Upgrade minimatch to version 11.0.8. The sources list no fixed version for minimatch other than 11.0.8.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA minimatch (isaacs) Fixed in 11.0.8

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-140007

References

  • TI-2026-42687 node-tar: Decompression/parse DoS via unlimited input CVSS 4.0CRITICAL 9.2
  • TI-2026-42688 node-tar: Negative tar entry size causes infinite loop in archive replace CVSS 4.0HIGH 8.7
  • TI-2026-51656 Uncontrolled resource consumption in isaacs node-tar CVSS 3.1HIGH 7.5
  • TI-2026-42686 node-tar: Process crash via PAX numeric path type confusion CVSS 3.1HIGH 7.5
  • TI-2026-24357 node-tar Symlink Path Traversal via Drive-Relative Linkpath CVSS 4.0HIGH 8.2
  • TI-2026-23372 node-tar: Hardlink Path Traversal via Drive-Relative Linkpath CVSS 4.0HIGH 8.2
See all 25 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences