Skip to content

chore(deps): require minimatch 11.0.8 or later (two advisories) - #5821

Merged
cliffhall merged 1 commit into
v2/mainfrom
v2/chore/5740-minimatch-11.0.8
Dec 5, 2026
Merged

cliffhall merged 1 commit into
v2/mainfrom
v2/chore/5740-minimatch-11.0.8

Conversation

@cliffhall

Copy link
Copy Markdown
Member

Closes #5740

Description

Raises minimatch's floor to 11.0.8 in both places that constrain it, src/filesystem/package.json (^11.0.4 → ^11.0.8) and the root overrides entry (^11.0.1 → ^11.0.8), so no copy can resolve inside the ranges of the two advisories the alert sweep filed. The lockfile now resolves every copy to 11.0.10. Carries a patch changeset for @modelcontextprotocol/server-filesystem, since this is a runtime dependency.

GHSA Severity Vulnerable range Was Now
GHSA-cf2h-pxjq-68xw high >= 11.0.0, <= 11.0.6 11.0.5 11.0.10
GHSA-hqmv-qgp3-jx75 medium >= 11.0.3, <= 11.0.7 11.0.5 11.0.10

Server Details

  • Server: filesystem
  • Changes to: dependencies (minimatch, used by search_files and its excludePatterns)

Motivation and Context

Filed by the daily Dependabot alert sweep (#5740). Fixed before the v2.7.0 release (#5820).

How Has This Been Tested?

  • The alert sweep, against this branch's lockfile: GITHUB_REPOSITORY=modelcontextprotocol/servers node scripts/dependabot-alerts.mjs --dry-run prints minimatch@11.0.10 is already out of range on v2/main; skipping and would edit #5740 … cleared #5740: every installed copy is out of range (11.0.10).
  • npm ls minimatch --all: four entries, every one 11.0.10.
  • Inspector CLI 2.18.0, both eras: search_files on a tree holding src/a/match.txt, node_modules/pkg/match.txt, dist/match.txt and .hidden-match.txt, with pattern: "**/*match*", excludePatterns: ["node_modules", "dist/**"]:
    • --protocol-era legacy (2025-11-25): exit 0, returns .hidden-match.txt and src/a/match.txt only.
    • --protocol-era modern (2026-07-28, io.modelcontextprotocol/serverInfo in _meta): exit 0, the same two paths.
  • LLM client: Claude Code 2.1.337, headless, --strict-mcp-config against this build, prompt "Use the filesystem server's search_files tool to find files matching '**/*match*' under , excluding 'node_modules' and 'dist/**'…": it returned the same two paths. Claude Code does not expose the era it negotiated.
  • npm run local:gate: exit 0.

Breaking Changes

None.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change
  • Documentation update

Checklist

  • I have read the MCP Protocol Documentation (not applicable: no protocol surface changes)
  • My changes follow MCP security best practices
  • I have updated the server's README accordingly (not applicable: no tool, option or configuration change)
  • I have added a changeset (npm run changeset) if this changes what a TypeScript server publishes
  • I have tested this with an LLM client
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling (not applicable: dependency bump only)
  • I have documented all environment variables and configuration options (not applicable: none added)

🤖 Generated with Claude Code

Raise filesystem's declared range and the root overrides entry from
^11.0.4 / ^11.0.1 to ^11.0.8, so no copy can resolve inside the ranges of
GHSA-cf2h-pxjq-68xw (high) and GHSA-hqmv-qgp3-jx75 (medium). The lockfile
now resolves every copy to 11.0.10.

Closes #5740

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: cliffhall <cliff@futurescale.com>
@cliffhall cliffhall added the v2 label Dec 5, 2026
@changeset-bot

changeset-bot Bot commented Dec 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a095d7d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@modelcontextprotocol/server-filesystem Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cliffhall
cliffhall requested a balanced review from Copilot December 5, 2026 07:19
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

filesystem: MCP interface diff

Base: 93f03556b3e7 (Merge pull request #5761 from modelcontextprotocol/v2/chore/5759-gate-scope-and-coverage)
Head: the build in this checkout, at 12e988fd2047 (Merge a095d7d into 93f0355)

Diffed because it was named (--server).

✅ No interface changes detected.

Tools Prompts Resources Resource templates
Base 16 0 0 1
Head 16 0 0 1

Updated by this run for a095d7d9f151ed55086b7ee408ff7c07e7ad0e28.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 minimatch dependency update.

No open issues 🎉

What changed in this PR

Updates minimatch constraints to address both advisories tracked in #5740 ahead of v2.7.0.

Changes:

  • Raises the filesystem dependency and root override to ^11.0.8.
  • Updates the locked version to 11.0.10.
  • Adds a filesystem patch changeset.
File Description
src/​filesystem/​package.json Raises the runtime dependency floor.
package.json Applies the patched floor through the root override.
package-lock.json Locks minimatch to 11.0.10 and synchronizes the dependency range.
.changeset/​filesystem-minimatch-11-0-8.md Records the security fix for a filesystem patch release.

Review effort: Balanced

@cliffhall

Copy link
Copy Markdown
Member Author

Copilot round 1: clean (no findings). The review loop stops here on the first clean round.

@cliffhall
cliffhall merged commit f27b764 into v2/main Dec 5, 2026
50 checks passed
@cliffhall
cliffhall deleted the v2/chore/5740-minimatch-11.0.8 branch December 5, 2026 07:29
@github-actions github-actions Bot mentioned this pull request Dec 5, 2026
@cliffhall cliffhall mentioned this pull request Dec 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(deps): bump minimatch to 11.0.8 in package-lock.json (2 advisories)

2 participants