# CVE-2026-140007: minimatch: Global pattern cache retains large expansions, enabling memory exhaustion

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-11-30T21:35:25.548Z
- Modified: 2026-12-01T18:15:04.058Z
- Also known as: GHSA-hqmv-qgp3-jx75
- Weaknesses: CWE-400
- Assigned by: 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.

(As written by CVE List.)

## Affected

- isaacs minimatch: >= 11.0.3, < 11.0.8
- minimatch (npm): from 11.0.3 before 11.0.8

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/isaacs/minimatch/security/advisories/GHSA-hqmv-qgp3-jx75> (web)
- <https://github.com/isaacs/minimatch/commit/d70a7bbc73140bd771daf5c30869b28dbc48929c> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140007> (advisory)
- <https://github.com/isaacs/minimatch> (package)

## Sources

- CVE List: [CVE-2026-140007](https://www.cve.org/CVERecord?id=CVE-2026-140007), CVE Terms of Use, modified 2026-11-30
- GitHub Advisory Database: [GHSA-hqmv-qgp3-jx75](https://github.com/advisories/GHSA-hqmv-qgp3-jx75), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-140007](https://nvd.nist.gov/vuln/detail/CVE-2026-140007), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-140007 · Whole record: https://cve.day/CVE-2026-140007.json · Rebuilt by cve.day 2026-12-01T18:27:24.931Z
