{"id":"CVE-2026-140006","aliases":["CVE-2026-140006"],"related":[],"kind":"vulnerability","state":"published","title":"minimatch: minimatch.escape() output matches more or less than the literal input","summary":"minimatch is a minimal matching utility for converting glob expressions into JavaScript RegExp objects. From 7.4.0 until 11.0.8, minimatch.escape() can produce patterns that do not exclusively match the supplied literal input: leading ! can become negation, leading # can become a comment, braceExpand() can collapse an escaped backslash and reactivate a following magic character when an expanded brace group is present and the installed brace-expansion release has the affected behavior (2.x or 5.0.4 through 5.0.12), and windowsPathsNoEscape combined with magicalBraces can leave braces active. Applications that escape attacker-controlled text and then use the result as an authorization, filtering, or path-selection pattern may match unintended strings or fail to match the intended literal. 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 7.4.0 until 11.0.8, minimatch.escape() can produce patterns that do not exclusively match the supplied literal input: leading ! can become negation, leading # can become a comment, braceExpand() can collapse an escaped backslash and reactivate a following magic character when an expanded brace group is present and the installed brace-expansion release has the affected behavior (2.x or 5.0.4 through 5.0.12), and windowsPathsNoEscape combined with magicalBraces can leave braces active. Applications that escape attacker-controlled text and then use the result as an authorization, filtering, or path-selection pattern may match unintended strings or fail to match the intended literal. This issue is fixed in version 11.0.8.","source":"cvelist"}],"published":"2026-11-30T21:31:29.712Z","modified":"2026-11-30T22:17:30.267Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-116"],"affected":[{"ranges":[{"version":">= 7.4.0, < 11.0.8","status":"affected"}],"vendor":"isaacs","product":"minimatch","source":"cvelist"}],"references":[{"url":"https://github.com/isaacs/minimatch/security/advisories/GHSA-c859-jr93-m5j4","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/isaacs/minimatch/commit/784603e09641970d2ba2caf8c73a95d1015cc67d","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-140006","url":"https://www.cve.org/CVERecord?id=CVE-2026-140006","licence":"CVE Terms of Use","modified":"2026-11-30T21:31:29.712Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-140006","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140006","licence":"Public domain","modified":"2026-11-30T22:17:30.267Z"}],"updatedAt":"2026-11-30T22:32:13.149Z","epss":{"score":0.00287,"percentile":0.22798,"date":"2026-12-01T12:00:22.000Z"}}