{"id":"CVE-2026-140007","summary":"minimatch: Global pattern cache retains large expansions, enabling memory exhaustion","details":"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.","aliases":["GHSA-hqmv-qgp3-jx75"],"modified":"2026-11-30T23:00:10.096049571Z","published":"2026-11-30T21:35:25.548Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-400"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140007.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140007.json"},{"type":"FIX","url":"https://github.com/isaacs/minimatch/commit/d70a7bbc73140bd771daf5c30869b28dbc48929c"},{"type":"ADVISORY","url":"https://github.com/isaacs/minimatch/security/advisories/GHSA-hqmv-qgp3-jx75"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140007"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/isaacs/minimatch","events":[{"introduced":"b0c2aa83161cb6aaa19fa2e612f0b64edffd18ee"},{"fixed":"35c928bb604f2a93fb8ee06bb8db5accefc3facb"},{"fixed":"d70a7bbc73140bd771daf5c30869b28dbc48929c"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"11.0.3"},{"fixed":"11.0.8"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"d70a7bbc73140bd771daf5c30869b28dbc48929c"}]}]}}],"versions":["v11.0.7","v11.0.6","v11.0.5","v11.0.4","v11.0.3"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140007.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}