Skip to content

minimatch

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

CVE-2026-140006GHSA-c859-jr93-m5j4Published 30 Nov 2026, 21:31 UTC

Real-world risk

1.7/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

5.4

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
minimatchWidespread>= 7.4.0, <= 11.0.711.0.8
minimatchNiche>= 7.4.0, < 11.0.811.0.8

What to do

Update to a fixed version: 11.0.8.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T3: Public proof of concept (× 0.95)

A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit

  • CISA SSVC: proof of concept
  • Reference tagged as exploit (link)

EPSS 0.4% chance of exploitation in 30 days (percentile 39), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.600
  2. Threat T3: Public proof of concept0.950
  3. 10 × impact 0.3 × prerequisites 0.6 × threat 0.951.710
  4. Rounded to one decimal between 0.1 and 101.7

How the score works

Exploitation and evidence timeline

  1. 30 Nov 2026 Published
  2. 2 Dec 2026 CISA SSVC: proof of concept first seen
  3. 2 Dec 2026 Reference tagged as exploit first seen
  4. 2 Dec 2026 Risk 1.7 (cvss fallback)

Weakness

CWE-116

References

Get alerts for minimatch

Free email or text alerts when a vulnerability in minimatch reaches risk 8 or higher. Nothing else.