CVE-2026-140006
published medium CVSS 3.1 · 5.4minimatch: minimatch.escape() output matches more or less than the literal input
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| isaacs | — | minimatch>= 7.4.0, < 11.0.8 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| isaacs | minimatch | >= 7.4.0, < 11.0.8 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-116 CWE-116: Improper Encoding or Escaping of Output
References
2Provider assertions
2GitHub_M · cna
minimatch: minimatch.escape() output matches more or less than the literal input
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 9eb143bd1d2f3f9af581b459865f65d11c8d5caa2d53fcd53978cb1e0d307762
- Ingested
- 01 Dec 2026, 19:20:27 UTC
- Source record
- Official CVE record