Skip to content

[rushstack] Upgrade minimatch to 11.0.2 to fix GHSA-g3hv-75wg-m249 - #6195

Closed
Roman (rowmanempire) wants to merge 1 commit into
microsoft:mainfrom
rowmanempire:rowmanempire/minimatch-11
Closed

Roman (rowmanempire) wants to merge 1 commit into
microsoft:mainfrom
rowmanempire:rowmanempire/minimatch-11

Conversation

@rowmanempire

Copy link
Copy Markdown

Summary

Fixes #6192.

minimatch < 11.0.1 is flagged by GHSA-g3hv-75wg-m249 (CVE-2026-118764). There is no patched 10.x release, so security scanners keep flagging @microsoft/api-extractor, @rushstack/package-extractor, and @rushstack/webpack4-localization-plugin for everyone who installs them.

This PR upgrades minimatch from 10.2.3 to 11.0.2 in all three packages and in common-versions.json. It covers the same packages as #5675, so it supersedes the Dependabot PR #6190, which only updates package-extractor.

Details

  • minimatch 11 removes makeRe(), Minimatch#regexp, the AST class, and the debug option. None of the three packages use them. They only call minimatch(path, pattern) (api-extractor Collector.ts, webpack4-localization-plugin WebpackConfigurationUpdater.ts) and new Minimatch(pattern, { dot: true }).match(path) (package-extractor PackageExtractor.ts), which 11 keeps.
  • Node support: minimatch 11.0.2 declares 18 || 20 || >=22, and its new dependency brace-expansion@5 declares 20 || >=22. minimatch 10.2.3 already declared 18 || 20 || >=22, so the only change is dropping Node 18, which is outside these packages' >=20.9.0 range anyway.
  • I used 11.0.2 rather than 11.0.4 because the repo's package feed only has versions up to 11.0.2. 11.0.2 already includes the fix (first patched version is 11.0.1); 11.0.3 and 11.0.4 only add pattern caching and drop Node 18.
  • Rush change files: patch bumps for the three packages.

How it was tested

On Node 24.22.2:

  • rush update, then rush install: passed.
  • rush build --to @microsoft/api-extractor --to @rushstack/package-extractor --to @rushstack/webpack4-localization-plugin: 28 operations passed.
  • rush test --only for the three packages: passed, including PackageExtractor.test.ts, which covers patternsToInclude / patternsToExclude.
  • rush build for api-extractor-scenarios, api-extractor-test-01..05, package-extractor-test-01..05, and localization-plugin-test-01..03: 54 operations passed. The bundledPackages scenario, which uses glob patterns such as api-extractor-lib2* and *-lib{2,4,5}**, produced no report changes.

Impacted documentation

None.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

package-extractor depends on an old version of minimatch, which has a security issue

1 participant