NodeJS/minimatch/11.0.0
a glob matcher in javascript
https://www.npmjs.com/package/minimatch
BlueOak-1.0.0
1 Security Vulnerabilities
minimatch has potential denial of service via globparts amplification
- https://github.com/isaacs/minimatch/security/advisories/GHSA-g3hv-75wg-m249
- https://nvd.nist.gov/vuln/detail/CVE-2026-118764
- https://github.com/isaacs/minimatch/commit/77a0f5c4b80bdc641c3c930a1d9edf5ad2db57f8
- https://github.com/isaacs/minimatch/releases/tag/v11.0.1
- https://github.com/advisories/GHSA-g3hv-75wg-m249
minimatch 10.2.6 contains an attacker-controlled pattern amplification in firstPhasePreProcess() when optimizationLevel >= 2.
researcher: Reid Downing (b1nv0id) files:
- src/index.ts: 690-770
- src/index.ts: 780-796
issue: input-controlled growth of globParts during first-phase preprocessing, followed by quadratic second-phase processing.
the /../ transformation clones a globparts entry and appends the clone to the same globparts array: ``` parts.splice(gs, 1) const other = parts.slice(0) other[gs] = '' globParts.push(other) ``` this occurs inside a do...while (didSomething) fixpoint loop, allowing generated entries to be processed again.
the expanded globparts array is subsequently processed by secondPhasePreProcess(), which performs pairwise comparisons: for (let i = 0; i < globParts.length - 1; i++) { for (let j = i + 1; j < globParts.length; j++) { this.partsMatch(...) } } an attacker who can supply a glob pattern can therefore cause additional pattern entries to be generated during preprocessing, followed by quadratic pairwise processing, resulting in excessive cpu and memory consumption.
150 Other Versions
| Version | License | Security | Released | |
|---|---|---|---|---|
| 3.1.4 | ISC | 1 | 2026-02-25 - 00:44 | 8 months |
| 3.1.3 | ISC | 2 | 2026-02-22 - 02:17 | 9 months |
| 3.1.2 | ISC | 4 | 2022-02-15 - 20:32 | over 4 years |
| 3.1.1 | ISC | 4 | 2022-02-13 - 04:01 | over 4 years |
| 3.1.0 | ISC | 4 | 2022-02-13 - 01:03 | over 4 years |
| 3.0.8 | ISC | 4 | 2022-02-15 - 20:33 | over 4 years |
| 3.0.7 | ISC | 4 | 2022-02-13 - 04:03 | over 4 years |
| 3.0.6 | ISC | 4 | 2022-02-12 - 23:58 | over 4 years |
| 3.0.5 | ISC | 4 | 2022-02-06 - 20:28 | over 4 years |
| 3.0.4 | ISC | 5 | 2017-05-07 - 18:11 | over 9 years |
| 3.0.3 | ISC | 5 | 2016-08-08 - 17:45 | about 10 years |
| 3.0.2 | ISC | 5 | 2016-06-17 - 20:13 | over 10 years |
| 3.0.0 | ISC | 7 | 2015-09-27 - 18:18 | about 11 years |
| 2.0.10 | ISC | 7 | 2015-07-23 - 01:51 | over 11 years |
| 2.0.9 | ISC | 7 | 2015-07-18 - 23:03 | over 11 years |
| 2.0.8 | ISC | 7 | 2015-05-19 - 01:38 | over 11 years |
| 2.0.7 | MIT | 7 | 2015-04-29 - 15:43 | over 11 years |
| 2.0.6 | MIT | 7 | 2015-04-29 - 15:25 | over 11 years |
| 2.0.5 | MIT | 7 | 2015-04-29 - 14:37 | over 11 years |
| 2.0.4 | MIT | 7 | 2015-03-12 - 17:34 | over 11 years |
| 2.0.3 | MIT | 7 | 2015-03-10 - 02:03 | over 11 years |
| 2.0.2 | MIT | 7 | 2015-03-10 - 00:34 | over 11 years |
| 2.0.1 | MIT | 7 | 2014-12-01 - 16:30 | almost 12 years |
| 2.0.0 | MIT | 7 | 2014-12-01 - 02:12 | almost 12 years |
| 1.0.0 | MIT | 7 | 2014-07-28 - 21:29 | over 12 years |
| 0.4.0 | MIT | 7 | 2014-07-11 - 23:25 | over 12 years |
| 0.3.0 | MIT | 7 | 2014-05-13 - 00:47 | over 12 years |
| 0.2.14 | MIT | 7 | 2013-12-16 - 22:01 | almost 13 years |
| 0.2.13 | MIT | 7 | 2013-12-16 - 06:02 | almost 13 years |
| 0.2.12 | MIT | 7 | 2013-04-12 - 19:28 | over 13 years |
| 0.2.11 | MIT | 7 | 2013-02-25 - 16:23 | over 13 years |
| 0.2.10 | MIT | 7 | 2013-02-25 - 16:21 | over 13 years |
| 0.2.9 | MIT | 7 | 2012-10-25 - 15:34 | about 14 years |
| 0.2.8 | MIT | 7 | 2012-10-25 - 15:24 | about 14 years |
| 0.2.7 | MIT | 7 | 2012-10-04 - 03:49 | about 14 years |
| 0.2.6 | MIT | 7 | 2012-08-13 - 16:42 | about 14 years |
| 0.2.5 | MIT | 7 | 2012-06-04 - 20:57 | over 14 years |
| 0.2.4 | MIT | 7 | 2012-03-29 - 01:48 | over 14 years |
| 0.2.3 | MIT | 7 | 2012-03-29 - 01:37 | over 14 years |
| 0.2.2 | MIT | 7 | 2012-03-22 - 05:22 | over 14 years |
| 0.2.0 | MIT | 7 | 2012-02-22 - 11:04 | over 14 years |
| 0.1.5 | MIT | 7 | 2012-02-04 - 19:32 | over 14 years |
| 0.1.4 | MIT | 7 | 2012-01-19 - 00:14 | almost 15 years |
| 0.1.3 | MIT | 7 | 2012-01-04 - 09:14 | almost 15 years |
| 0.1.2 | MIT | 7 | 2012-01-04 - 02:28 | almost 15 years |
| 0.1.1 | MIT | 7 | 2011-12-31 - 02:22 | almost 15 years |
| 0.0.5 | MIT | 7 | 2011-12-14 - 02:32 | almost 15 years |
| 0.0.4 | MIT | 7 | 2011-07-29 - 19:13 | over 15 years |
| 0.0.2 | ISC | 7 | 2011-07-16 - 17:57 | over 15 years |
| 0.0.1 | ISC | 7 | 2011-07-16 - 08:52 | over 15 years |
