minimatch escape() output matches more or less than the literal input
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
The minimatch package from 7.4.0 before 11.0.8 has an improper escaping flaw (CWE-116) in its minimatch.escape() function. Escaped output can match more or less than the literal input: a leading exclamation point can become negation and a leading # can become a comment. Applications that escape attacker-controlled text and use the result for authorization, filtering, or path selection may match unintended strings.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| isaacs | minimatch | 7.4.0 to before 11.0.8 | 11.0.8 | Patch available | CNA |
- minimatch Vendorisaacs Affected 7.4.0 to before 11.0.8 Fixed in 11.0.8 Patch available CNA
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:minimatch_project:minimatch:*:*:*:*:*:*:*:* | — | — | Minimatch Project |
- cpe:2.3:a:minimatch_project:minimatch:*:*:*:*:*:*:*:* Versions — — ·Minimatch Project
Remediation
Upgrade minimatch to version 11.0.8, which fixes this issue.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA minimatch (isaacs) Fixed in 11.0.8
Timeline
- 2026-11-30 Threatist record created from CVE-2026-140006
References
More isaacs vulnerabilities
- TI-2026-42687 node-tar: Decompression/parse DoS via unlimited input CVSS 4.0CRITICAL 9.2
- TI-2026-42688 node-tar: Negative tar entry size causes infinite loop in archive replace CVSS 4.0HIGH 8.7
- TI-2026-51656 Uncontrolled resource consumption in isaacs node-tar CVSS 3.1HIGH 7.5
- TI-2026-42686 node-tar: Process crash via PAX numeric path type confusion CVSS 3.1HIGH 7.5
- TI-2026-24357 node-tar Symlink Path Traversal via Drive-Relative Linkpath CVSS 4.0HIGH 8.2
- TI-2026-23372 node-tar: Hardlink Path Traversal via Drive-Relative Linkpath CVSS 4.0HIGH 8.2
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences