From 84e6e1cfe913a4ea728c524c5174c1ff2dd20e1b Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 27 Nov 2026 21:08:56 +0000 Subject: [PATCH] build(deps): route api-extractor's minimatch to 11 and delete the GHSA-g3hv-75wg-m249 exemption @microsoft/api-extractor pins minimatch 10.2.3 exact and was the last 10.x copy in the lockfile. It is only an auto-installed optional peer of tsup, unplugin-dts and vite-plugin-dts, loaded for bundleTypes, rollupTypes or experimentalDts, none of which any build here enables, and its one call is the `minimatch()` named export that v11 keeps. A parent-scoped override routes it to ^11.0.9, which leaves no minimatch 10.x copy, so the osv-scanner.toml exemption goes and the ledger is back to zero entries. Claude-Session: https://claude.ai/code/session_01L9qibzpqH1nQTsbGckLspg Co-authored-by: Claude --- osv-scanner.toml | 5 ----- pnpm-lock.yaml | 12 ++---------- pnpm-workspace.yaml | 17 +++++++++++++---- 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/osv-scanner.toml b/osv-scanner.toml index 584c012d97f..e388077fed8 100644 --- a/osv-scanner.toml +++ b/osv-scanner.toml @@ -84,8 +84,3 @@ # # Verify locally: node scripts/check-osv-exemptions.mjs # Prove the check: node scripts/check-osv-exemptions.mjs --self-test - -[[IgnoredVulns]] -id = "GHSA-g3hv-75wg-m249" -ignoreUntil = 2026-12-21 -reason = "https://github.com/advisories/GHSA-g3hv-75wg-m249 — the only patched minimatch is 11.0.1, a breaking major, and two holders of a 10.x copy in pnpm-lock.yaml have no release that accepts it: @microsoft/api-extractor (newest 7.60.1 pins 10.2.3 exact) and exceljs (newest 4.4.0 still declares archiver ^5 and unzipper ^0.10, whose glob 7.2.3 and readdir-glob 1.1.3 the pnpm-workspace.yaml override lifts to 10.2.6), while eslint, @eslint/config-array, @typescript-eslint/typescript-estree, @oclif/core and @ts-morph/common accept 11 in their newest releases but are locked on older ones that still take 10.2.6 and move only in a dependency bump; remove when no 10.x copy is left in the lockfile." diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 067482714d1..df05e0ad5fa 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,7 @@ overrides: minimatch@<4.0.0: ^3.1.4 minimatch@>=4.0.0 <6.0.0: ^5.1.8 minimatch@>=6.0.0 <11.0.0: ^10.2.3 + '@microsoft/api-extractor>minimatch': ^11.0.9 tar@>=2.0.0 <8.0.0: ^7.5.11 form-data@<5.0.0: '>=4.0.6' undici@>=7.23.0 <8.0.0: ^7.30.1 @@ -12406,10 +12407,6 @@ packages: mingo@7.2.4: resolution: {integrity: sha512-KrxHKzMMguL+G1lBC6YbU5UTXdw2viwVHNTPzNYVfEQfSAoetC3M1a7rlveOksn/96oNy+QwBlIXvx/q6rWyxQ==} - minimatch@10.2.6: - resolution: {integrity: sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==} - engines: {node: 18 || 20 || >=22} - minimatch@11.0.3: resolution: {integrity: sha512-iny/40PEGkNJQ5/Pv6z3nm6FbRAby32GeZRjCUJk2WnNDbgPSTcdI+DDvLqsgBdD4cD5sMtMheqPPnehCCa8Nw==} engines: {node: 18 || 20 || >=22} @@ -15852,7 +15849,7 @@ snapshots: '@rushstack/ts-command-line': 5.3.5(@types/node@26.6.5) diff: 8.0.4 lodash: 4.18.1 - minimatch: 10.2.6 + minimatch: 11.0.9 resolve: 1.22.13 semver: 7.5.4 source-map: 0.6.1 @@ -20849,11 +20846,6 @@ snapshots: mingo@7.2.4: {} - minimatch@10.2.6: - dependencies: - brace-expansion: 5.0.12 - optional: true - minimatch@11.0.3: dependencies: '@isaacs/nonrecursive-glob-match': 1.0.3 diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index af0150f230e..02af5d35177 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -329,13 +329,22 @@ overrides: # so a 3.x or 5.x holder is safe on its own major and only a lift into 10.x # exposes it. glob 7.2.3 (^3.1.1) and readdir-glob 1.1.3 (^5.1.0), both # under exceljs's archiver 5 and unzipper 0.10, therefore stay on their own - # majors. Everything from 6.0.0 still collapses onto 10.x, which today is - # only @microsoft/api-extractor's exact 10.2.3 (an optional peer of tsup and - # unplugin-dts that no build here enables); that holder is what the - # osv-scanner.toml exemption for GHSA-g3hv-75wg-m249 still covers. + # majors. The 6.0.0 to 11.0.0 floor holds no copy today; it stays as the + # floor for a holder that arrives later, which the OSV gate would then flag. 'minimatch@<4.0.0': '^3.1.4' 'minimatch@>=4.0.0 <6.0.0': '^5.1.8' 'minimatch@>=6.0.0 <11.0.0': '^10.2.3' + # @microsoft/api-extractor pins minimatch 10.2.3 EXACT (7.58.2 here, and + # still in 7.60.2), the last 10.x copy GHSA-g3hv-75wg-m249 reaches. It is + # only an auto-installed optional peer of tsup, unplugin-dts and + # vite-plugin-dts, which load it lazily and only for bundleTypes, + # rollupTypes or experimentalDts, and no build here enables any of them. + # Its one call into minimatch is the named `minimatch()` export, which v11 + # keeps, so the parent-scoped route to 11 changes nothing a build runs. It + # names a parent, not a version range, so the selector-shape rule above has + # no bound to place. DELETE this line once an api-extractor release drops + # its exact 10.x pin and this lockfile takes it. + '@microsoft/api-extractor>minimatch': '^11.0.9' 'tar@>=2.0.0 <8.0.0': '^7.5.11' 'form-data@<5.0.0': '>=4.0.6' 'undici@>=7.23.0 <8.0.0': '^7.30.1'