CVE-2026-140006
MEDIUM 5.4CVSS 3.1minimatch: minimatch.escape() output matches more or less than the literal input
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.
- Published
- 30 Nov 2026
- Last modified
- 1 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Received
- Weakness
- CWE-116
- Also known as
- GHSA-c859-jr93-m5j4
- Sources
- NVDJSONCVE ListJSONOSV GHSA-c859-jr93-m5j4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| CVE List | GitHub_M | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: poc; Automatable: no; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | isaacs | minimatch | = >= 7.4.0, < 11.0.8 | |
| OSV | npm | minimatch | >= 7.4.0, < 11.0.8 | 11.0.8 |
References
- https://github.com/isaacs/minimatch/commit/784603e09641970d2ba2caf8c73a95d1015cc67d · x_refsource_MISC, WEB
- https://github.com/isaacs/minimatch/security/advisories/GHSA-c859-jr93-m5j4 · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-140006 · ADVISORY
- https://github.com/isaacs/minimatch · PACKAGE
History
- 1 Dec 2026 20:28 UTC · NVD: 1 reference added
- 1 Dec 2026 19:30 UTC · CVE List: updated (other details)
- 1 Dec 2026 18:39 UTC · OSV: first stored (published 1 Dec 2026)
- 30 Nov 2026 22:30 UTC · NVD: first stored (published 30 Nov 2026)
- 30 Nov 2026 21:58 UTC · CVE List: first stored (published 30 Nov 2026)