{"id":"CVE-2026-140007","state":"PUBLISHED","title":"minimatch: Global pattern cache retains large expansions, enabling memory exhaustion","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.","publishedAt":"2026-11-30T21:35:25.548Z","updatedAt":"2026-11-30T21:35:25.548Z","severity":{"score":5.9,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["isaacs minimatch"],"affected":[{"vendor":"isaacs","product":"minimatch","versions":[{"version":">= 11.0.3, < 11.0.8","status":"affected"}]}],"references":["https://github.com/isaacs/minimatch/security/advisories/GHSA-hqmv-qgp3-jx75","https://github.com/isaacs/minimatch/commit/d70a7bbc73140bd771daf5c30869b28dbc48929c"],"weaknesses":["CWE-400"],"ingestedAt":"2026-11-30T21:38:06.353Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/140xxx/CVE-2026-140007.json","commit":"37709618ef541107cb9ec4033cfee7ad80986632","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-140007","state":"PUBLISHED","datePublished":"2026-11-30T21:35:25.548Z","dateUpdated":"2026-11-30T21:35:25.548Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-11-30T17:42:59.710Z"},"containers":{"cna":{"title":"minimatch: Global pattern cache retains large expansions, enabling memory exhaustion","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"isaacs","product":"minimatch","versions":[{"version":">= 11.0.3, < 11.0.8","status":"affected"}]}],"references":[{"url":"https://github.com/isaacs/minimatch/security/advisories/GHSA-hqmv-qgp3-jx75","name":"https://github.com/isaacs/minimatch/security/advisories/GHSA-hqmv-qgp3-jx75","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/isaacs/minimatch/commit/d70a7bbc73140bd771daf5c30869b28dbc48929c","name":"https://github.com/isaacs/minimatch/commit/d70a7bbc73140bd771daf5c30869b28dbc48929c","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":5.9,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","lang":"en","description":"CWE-400: Uncontrolled Resource Consumption","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-30T21:35:25.548Z"},"source":{"advisory":"GHSA-hqmv-qgp3-jx75","discovery":"UNKNOWN"}}}}}