CVE-2026-140007
published medium CVSS 3.1 · 5.9minimatch: Global pattern cache retains large expansions, enabling memory exhaustion
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| isaacs | — | minimatch>= 11.0.3, < 11.0.8 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.9 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| isaacs | minimatch | >= 11.0.3, < 11.0.8 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-400 CWE-400: Uncontrolled Resource Consumption
References
2Provider assertions
1GitHub_M · cna
minimatch: Global pattern cache retains large expansions, enabling memory exhaustion
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 305c9ac81c19b065cd842aa5f6ecd2eafbb06720a13104aee8b668a03b9f0ca9
- Ingested
- 30 Nov 2026, 21:38:19 UTC
- Source record
- Official CVE record