Skip to content

chore(deps): override minimatch to ^11 to clear GHSA-g3hv-75wg-m249 - #2895

Merged
cliffhall merged 1 commit into
v2/mainfrom
v2/chore/2863-minimatch-advisory
Nov 5, 2026
Merged

cliffhall merged 1 commit into
v2/mainfrom
v2/chore/2863-minimatch-advisory

Conversation

@cliffhall

Copy link
Copy Markdown
Member

Closes #2863

Clears the moderate minimatch advisory (GHSA-g3hv-75wg-m249) with the issue's option 2. npm audit now reports 0 vulnerabilities in all six installs (root, web, tui, cli, mcpdo, launcher).

Option 1 is still not available

Checked today against the registry's latest: [email protected] declares minimatch ^10.2.6, @eslint/[email protected] ^10.2.4, @typescript-eslint/[email protected] ^10.2.2. None has widened to ^11.

The change

  • root, clients/tui, clients/web: overrides.minimatch: "^11.0.4". cli, mcpdo and launcher have no copy of their own (their lint resolves the root's eslint), so they need no entry.
  • clients/web also overrides glob to ^14.0.3. Web has one glob (13.0.6, under Storybook's @joshwooding/vite-plugin-react-docgen-typescript), and the audit flagged it through the same minimatch. glob 13 can't simply be put on minimatch 11: its Ignore/Pattern code iterates Minimatch#set and expects RegExp portions, which minimatch 11 replaced with matcher objects. glob 14 is the release built on minimatch 11, and the plugin's only call, globSync(pattern, { absolute, cwd, ignore, nodir }), works the same under it. Storybook (123/123) passes in the gate.
  • local-dev skill: records this case next to the esbuild override it matches, including when to drop it (once those upstreams declare ^11, since the audit can't flag a stale override).

No npm audit fix was used.

Lint resolves the same files

minimatch 11 changed matching internals and dropped makeRe/regexp/AST/debug. The lint toolchain only uses new Minimatch(p, { dot: true }).match(path[, partial]) and minimatch(path, pattern, { dot: true }), all of which still exist. To check the behavior, I snapshotted every lint scope before and after the override with ESLint's Node API: the files lintFiles selects, a hash of calculateConfigForFile for each one, and its error/warning counts.

Scope Files before Files after Diff
root lint:core 212 212 identical
root lint:shared 18 18 identical
web 899 899 identical
cli 60 60 identical
tui 103 103 identical
launcher 6 6 identical
mcpdo 81 81 identical

Verification

npm run local:gate is green on this HEAD (all suites, coverage, smokes, Storybook 123/123). verify:dep-lockstep is OK.

🤖 Generated with Claude Code

… (#2863)

Option 1 on the issue is still unavailable: eslint 10.14.0 (^10.2.6),
@eslint/config-array 0.23.5 (^10.2.4) and @typescript-eslint/typescript-estree
8.72.1 (^10.2.2) all still declare minimatch 10. So option 2:

- root, clients/tui, clients/web: `overrides.minimatch: ^11.0.4`.
- clients/web also `overrides.glob: ^14.0.3`. Its only glob (13.0.6, under
  Storybook's react-docgen-typescript plugin) iterates `Minimatch#set`
  expecting RegExps, which minimatch 11 replaced with matcher objects; glob
  14 is the release built on minimatch 11, and the plugin's one call
  (`globSync(pattern, { absolute, cwd, ignore, nodir })`) is unchanged by it.
- local-dev skill: record the case beside the esbuild one, with its drop
  condition.

`npm audit` is clean in all six installs. Lint was snapshotted before and
after in all seven scopes (core, shared, web, cli, tui, launcher, mcpdo):
the same files, the same resolved config per file and the same message
counts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: cliffhall <[email protected]>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the development-tooling dependency overrides.

No open issues 🎉

2 files not reviewed
  • clients/tui/package-lock.json: Generated file
  • clients/web/package-lock.json: Generated file
What changed in this PR

Addresses #2863 by overriding vulnerable development-tooling dependencies, without changing Inspector’s application code.

Changes:

  • Overrides minimatch to ^11.0.4 in the root, web, and TUI installs.
  • Updates web’s glob to ^14.0.3 for compatibility with minimatch 11.
  • Documents the override rationale, compatibility checks, and removal conditions.
File Description
package.json Adds the root minimatch override.
package-lock.json Locks minimatch 11 and its new dependency.
clients/​web/​package.json Adds minimatch and glob overrides.
clients/​web/​package-lock.json Updates minimatch, glob, and related transitive dependencies.
clients/​tui/​package.json Adds the TUI minimatch override.
clients/​tui/​package-lock.json Locks minimatch 11 and its new dependency.
.claude/​skills/​local-dev/​SKILL.md Documents compatibility requirements and override removal guidance.

Review effort: Balanced

@cliffhall

Copy link
Copy Markdown
Member Author

Copilot review closed: round 1 was clean (no inline comments, no headline findings, no suppressed comments), so the loop stopped on the first clean round.

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

Labels

v2 Issues and PRs for v2

Projects

None yet

2 participants