Repository navigation
fix(sdk): override API Extractor's vulnerable minimatch dependency - #2633
Merged
Merged
Conversation
Resolve GHSA-g3hv-75wg-m249 with a dev-tool-scoped override and regenerated pnpm lockfile. Preserve the existing audit policy and published SDK dependency surface. Co-authored-by: Mecatl <[email protected]>
This was referenced Nov 11, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fix the SDK CI dependency-audit failure for GHSA-g3hv-75wg-m249 / CVE-2026-118764 (moderate denial of service in minimatch pattern preprocessing).
@microsoft/api-extractor>minimatch@<11.0.1→^11.0.1.@isaacs/nonrecursive-glob-match1.0.3 dependency.Only
sdk/typescript/pnpm-workspace.yamland its lockfile change. This is separate from lifecycle-test PR #2630. Rebased ontomainafter macOS-runner migration #2632 merged, so its CI uses the new macOS 26 runners.Why an override
The failure reproduces in the original lockfile as one moderate advisory on
@microsoft/api-extractor > [email protected]; patched versions start at 11.0.1. Even the latest API Extractor version checked (7.60.1) still pins 10.2.3, so a direct tooling upgrade alone does not remediate it.The override applies only to this dev-tool dependency edge and only while its selected minimatch version is vulnerable. Remove it when API Extractor adopts a patched version.
This crosses a transitive major version intentionally. Minimatch 11 removes APIs such as
makeReandAST, but API Extractor's installed consumer uses only the retained namedminimatch()function. Its Node engine range supports both SDK CI versions. Both changed packages use the permissive BlueOak-1.0.0 license.Verification
Reproduced the original advisory, then confirmed a frozen install resolves only minimatch 11.0.3 and the audit reports zero unignored advisories.
Passed under Node 22.23.4 and Node 24.18.0, using pnpm 12.15.0:
Also passed:
task testtask linttask test:racegit diff --checkAPI compatibility
Dev-tool dependency remediation only. No runtime, wire API, public Go/TypeScript API, stored-data, package version, or client upgrade changes. No API major bump or feature identifier is required.