Skip to content

fix(sdk): override API Extractor's vulnerable minimatch dependency - #2633

Merged
jbeda merged 1 commit into
mainfrom
fix/sdk-minimatch-audit
Oct 31, 2026
Merged

jbeda merged 1 commit into
mainfrom
fix/sdk-minimatch-audit

Conversation

@jbeda

@jbeda jbeda commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Fix the SDK CI dependency-audit failure for GHSA-g3hv-75wg-m249 / CVE-2026-118764 (moderate denial of service in minimatch pattern preprocessing).

  • Add a narrowly scoped pnpm override: @microsoft/api-extractor>minimatch@<11.0.1 → ^11.0.1.
  • Regenerate the lockfile with the package's pinned pnpm 12.15.0. API Extractor now resolves minimatch 11.0.3, plus its new @isaacs/nonrecursive-glob-match 1.0.3 dependency.
  • Leave direct dependencies, runtime code, package version, and the published SDK API unchanged.
  • Add no audit suppression. The existing unrelated sprintf-js exception is unchanged.

Only sdk/typescript/pnpm-workspace.yaml and its lockfile change. This is separate from lifecycle-test PR #2630. Rebased onto main after 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 makeRe and AST, but API Extractor's installed consumer uses only the retained named minimatch() 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:

task sdk:audit sdk:lint sdk:typecheck sdk:test sdk:api:check sdk:examples:typecheck sdk:docs:check
  • 64 test files / 392 tests passed on each Node version, including packed-package consumer and TypeScript 5.7/6/7 declaration checks.
  • All three API Extractor entry-point reports passed without changes; generated SDK reference freshness passed.
  • Additional positive/negative glob-matching smoke checks use minimatch resolved from API Extractor's own dependency context on both Node versions.

Also passed:

  • task test
  • task lint
  • task test:race
  • Offline demo: tool call, permission ask/approval, and final result observed
  • git diff --check
  • Independent security and dependency/licensing reviews: no findings

API 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.

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]>
@jbeda
jbeda merged commit 88b3fa6 into main Oct 31, 2026
39 checks passed
@jbeda
jbeda deleted the fix/sdk-minimatch-audit branch October 31, 2026 19:49
This was referenced Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant