{"id":"CVE-2026-140007","aliases":["CVE-2026-140007"],"related":[],"kind":"vulnerability","state":"published","title":"minimatch: Global pattern cache retains large expansions, enabling memory exhaustion","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T21:35:25.548Z","modified":"2026-11-30T22:17:30.417Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-400"],"affected":[{"ranges":[{"version":">= 11.0.3, < 11.0.8","status":"affected"}],"vendor":"isaacs","product":"minimatch","source":"cvelist"}],"references":[{"url":"https://github.com/isaacs/minimatch/security/advisories/GHSA-hqmv-qgp3-jx75","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/isaacs/minimatch/commit/d70a7bbc73140bd771daf5c30869b28dbc48929c","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-140007","url":"https://www.cve.org/CVERecord?id=CVE-2026-140007","licence":"CVE Terms of Use","modified":"2026-11-30T21:35:25.548Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-140007","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140007","licence":"Public domain","modified":"2026-11-30T22:17:30.417Z"}],"updatedAt":"2026-11-30T22:32:36.618Z","epss":{"score":0.00459,"percentile":0.41514,"date":"2026-12-01T12:00:22.000Z"}}