CVE-2026-140007
MEDIUM 5.9CVSS 3.1minimatch: Global pattern cache retains large expansions, enabling memory exhaustion
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.
- Published
- 30 Nov 2026
- Last modified
- 3 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-400
- Also known as
- GHSA-hqmv-qgp3-jx75
- Sources
- NVDJSONCVE ListJSONOSV GHSA-hqmv-qgp3-jx75JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CVE List | GitHub_M | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | isaacs | minimatch | = >= 11.0.3, < 11.0.8 | |
| OSV | npm | minimatch | >= 11.0.3, < 11.0.8 | 11.0.8 |
References
- https://github.com/isaacs/minimatch/commit/d70a7bbc73140bd771daf5c30869b28dbc48929c · x_refsource_MISC, WEB
- https://github.com/isaacs/minimatch/security/advisories/GHSA-hqmv-qgp3-jx75 · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-140007 · ADVISORY
- https://github.com/isaacs/minimatch · PACKAGE
History
- 3 Dec 2026 17:56 UTC · NVD: 1 reference added
- 3 Dec 2026 16:56 UTC · CVE List: updated (other details)
- 1 Dec 2026 18:39 UTC · OSV: first stored (published 1 Dec 2026)
- 30 Nov 2026 22:30 UTC · NVD: first stored (published 30 Nov 2026)
- 30 Nov 2026 21:58 UTC · CVE List: first stored (published 30 Nov 2026)