# CVE-2026-140006: minimatch: minimatch.escape() output matches more or less than the literal input

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- 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.29%, higher than 22% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-30T21:31:29.712Z
- Modified: 2026-12-01T20:19:00.370Z
- Also known as: GHSA-c859-jr93-m5j4
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/isaacs/minimatch/security/advisories/GHSA-c859-jr93-m5j4> (exploit, web)
- <https://github.com/isaacs/minimatch/commit/784603e09641970d2ba2caf8c73a95d1015cc67d> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140006> (advisory)
- <https://github.com/isaacs/minimatch> (package)

## Sources

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

---

Page: https://cve.day/CVE-2026-140006 · Whole record: https://cve.day/CVE-2026-140006.json · Rebuilt by cve.day 2026-12-01T20:32:53.179Z
