Skip to content

fix: update dependency minimatch to v11 [security] - #535

Merged
mdjermanovic merged 2 commits into
mainfrom
renovate/npm-minimatch-vulnerability
Nov 7, 2026
Merged

mdjermanovic merged 2 commits into
mainfrom
renovate/npm-minimatch-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
minimatch ^10.2.6 → ^11.0.0 age confidence

minimatch has potential denial of service via globparts amplification

CVE-2026-118764 / GHSA-g3hv-75wg-m249

More information

Details

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.

Severity

  • CVSS Score: 6.9 / 10 (Medium)
  • Vector String: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

isaacs/minimatch (minimatch)

v11.0.5

Compare Source

v11.0.4

Compare Source

v11.0.3

Compare Source

v11.0.2

Compare Source

v11.0.1

Compare Source

v11.0.0

Compare Source


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@lumirlumir

Copy link
Copy Markdown
Member

I’m marking this PR as a draft for now until consensus is reached in eslint/eslint#21463.

Comment thread packages/config-array/package.json Resolved
@renovate

renovate Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

@mdjermanovic

Copy link
Copy Markdown
Member

Summary of changes in v11: eslint/eslint#21492 (comment)

I also verified locally that npm test in eslint/eslint is passing when both eslint and @eslint/config-array use minimatch v11.0.5.

@mdjermanovic
mdjermanovic marked this pull request as ready for review November 7, 2026 15:31
@mdjermanovic
mdjermanovic merged commit 52ab336 into main Nov 7, 2026
36 checks passed
@mdjermanovic
mdjermanovic deleted the renovate/npm-minimatch-vulnerability branch November 7, 2026 15:32
@eslintbot eslintbot mentioned this pull request Nov 7, 2026
@lumirlumir lumirlumir mentioned this pull request Nov 8, 2026
1 of 11 tasks
dekobon added a commit to dekobon/tree-sitter-groovy that referenced this pull request Nov 10, 2026
eslint 9 has been end-of-life since 2026-08-06. The blocker was
eslint-config-treesitter 1.0.2, which has had no release since
2024-09. Work around its two defects in package.json instead:

- Add `globals` as a devDependency. The config imports it without
  declaring it, and eslint 10 no longer supplies it transitively.
- Override the config's eslint-plugin-jsdoc ^50 -> ^62.9.0, the
  newest major accepting eslint 10 that still runs on Node 20 (the
  CI lint job, #62).

Neither reaches consumers: devDependencies are not installed and npm
only honors `overrides` in the root project.

Lint behavior: the repo lints clean under eslint 10 on Node 20 and
25, and `npm ls` exits 0. A probe file reproduces every eslint 9
diagnostic unchanged; jsdoc 62's recommended set only adds warnings
(reject-any-type, escape-inline-tags, and similar).

The dependabot.yml major-version hold is replaced by a note on the
workarounds and when to drop them.

Known issue: eslint 10.14.0 pulls minimatch 10.2.6, flagged by
GHSA-g3hv-75wg-m249 (moderate; glob-pattern DoS). Patterns here come
only from our own config, so it is not reachable. The fix is merged
upstream (eslint/eslint#21492, eslint/rewrite#535) but unreleased;
bump eslint once it ships.
@Zwartpet

Copy link
Copy Markdown

@mdjermanovic a new version would also be appreciated, I would like to fix npm audit issues without manually pinning minimatch to 11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants