CVE-2016-10540 · hackerone
CVE-2016-10540
Minimatch is a minimal matching utility that works by converting glob expressions into JavaScript `RegExp` objects. The primary function, `minimatch(path, pattern)` in Minimatch 3.0.1 and earlier is vulnerable to ReDoS in the `pattern` parameter.
Published 2018-05-31, last changed 2026-06-17. Weakness: CWE-400, CWE-20.
How to fix
Upgrade to a fixed version: minimatch 3.0.2 (npm). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2018-05-31 | Published |
| 2018-10-09 | Package advisory GHSA-hxm2-r34f-qmc5 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.47% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-hxm2-r34f-qmc5 | minimatch (npm) | 3.0.2 |
Also known as: GHSA-hxm2-r34f-qmc5
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-141514 | 2026-12-01 | 3.7 | minimatch: Proto Key Bypasses Cache-Key Weighting in minimatch's Shared Matcher Cache |
| CVE-2026-140008 | 2026-11-30 | 8.7 | minimatch: Quadratic compile time for long wildcard patterns (regression in 11.0.0 `mergeRows`) |
| CVE-2026-140007 | 2026-11-30 | 5.9 | minimatch: Global pattern cache retains large expansions, enabling memory exhaustion |
| CVE-2026-140006 | 2026-11-30 | 5.4 | minimatch: minimatch.escape() output matches more or less than the literal input |
| CVE-2026-118764 | 2026-10-29 | 6.9 | minimatch: potential denial of service via globparts amplification |
| CVE-2026-27904 | 2026-02-26 | 7.5 | minimatch ReDoS: nested *() extglobs generate catastrophically backtracking regular expressions |
| CVE-2026-27903 | 2026-02-26 | 7.5 | minimatch has a ReDoS: matchOne() combinatorial backtracking via multiple non-adjacent GLOBSTAR segments |
| CVE-2026-26996 | 2026-02-20 | 7.5 | minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-10540, or call /api/v1/vulnerabilities/CVE-2016-10540. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.