CVE-2026-140006
JSON

5.4medium

minimatch: minimatch.escape() output matches more or less than the literal input

Severity
5.4medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.29% (higher than 22% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
isaacs minimatch>= 7.4.0, < 11.0.8CVE List

Classification

References

Sources

SourceRecordLicence
CVE ListCVE-2026-140006 changed 2026-11-30CVE Terms of Use
NVDCVE-2026-140006 changed 2026-11-30Public domain