Skip to content

chore(deps): v2.7.0 release audit — pin cross-spawn past three advisories - #5822

Merged
cliffhall merged 1 commit into
v2/mainfrom
v2/chore/5820-release-audit
Dec 5, 2026
Merged

cliffhall merged 1 commit into
v2/mainfrom
v2/chore/5820-release-audit

Conversation

@cliffhall

Copy link
Copy Markdown
Member

Closes #5820

Description

The v2.7.0 release audit (/release step 2a) forced one fix. npm audit --audit-level=high flagged cross-spawn 7.0.6 and 6.0.6 under three Windows-only injection advisories:

GHSA Severity Vulnerable Patched
GHSA-ghv9-86vm-4v8m critical >=7.0.0 <7.1.0, <6.0.7 7.1.0, 6.0.7
GHSA-m6qr-m48x-3xhh high >=7.0.4 <7.1.0, =6.0.6 7.1.0, 6.0.7
GHSA-w3gc-668g-rf8f high >=7.0.0 <7.1.1, <6.0.8 7.1.1, 6.0.8

Two root overrides entries pin each major line on its own, using version-selector keys: cross-spawn@^6 → ^6.0.8 and cross-spawn@^7 → ^7.1.1. The lockfile now holds 6.0.10 and 7.1.2. A single global cross-spawn key was tried first and forced execa@1 (which declares ^6.0.0) onto 7.x, which npm ls reports as invalid. The per-major keys keep every dependent inside its declared range.

The full audit report, Python included (clean), is on #5820.

Server Details

  • Server: none (repository-wide)
  • Changes to: root package.json overrides and package-lock.json. Every cross-spawn path is a devDependency (@modelcontextprotocol/client, eslint, mcp-server-diff, shx → shelljs → execa), so no published package changes and there is no changeset.

Motivation and Context

Release v2.7.0 (#5820): the audit runs before the version bumps so they sit on a checked tree.

How Has This Been Tested?

Targeted probe (no client-observable surface):

  • Before: npm audit --audit-level=high → 1 critical severity vulnerability, exit 1; npm ls cross-spawn --all → 7.0.6 (×3, deduped) and execa/node_modules/cross-spawn@6.0.6.
  • After: npm audit --audit-level=high → found 0 vulnerabilities, exit 0; npm ls cross-spawn --all → 7.1.2 (×3, deduped) and execa/node_modules/cross-spawn@6.0.10, with no invalid entries.
  • shx runs in every TypeScript workspace's build (shx chmod, shx cp), which the gate runs; those commands do not reach execa (shelljs loads it only for exec), so the 6.x bump is covered by npm ls resolving it inside execa's declared ^6.0.0, not by a run. 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 server changes)
  • I have added a changeset (npm run changeset) if this changes what a TypeScript server publishes (not applicable: dev dependencies only)
  • I have tested this with an LLM client (not applicable: no server-facing change)
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling (not applicable: dependency pin only)
  • I have documented all environment variables and configuration options (not applicable: none added)

🤖 Generated with Claude Code

Release audit for v2.7.0 (#5820). npm audit flagged cross-spawn 7.0.6 and
6.0.6 under GHSA-ghv9-86vm-4v8m (critical), GHSA-m6qr-m48x-3xhh and
GHSA-w3gc-668g-rf8f (high). Every copy is a devDependency path
(@modelcontextprotocol/client, eslint, mcp-server-diff, shx -> execa), so
no published server ships it.

Pin each major line with a version-selector overrides key, so execa@1
keeps the 6.x API it declares: cross-spawn@^6 -> ^6.0.8 (now 6.0.10),
cross-spawn@^7 -> ^7.1.1 (now 7.1.2).

Closes #5820

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

⚠️ No Changeset found

Latest commit: 78ae7de

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@cliffhall cliffhall linked an issue Dec 5, 2026 that may be closed by this pull request
@cliffhall
cliffhall requested a balanced review from Copilot December 5, 2026 07:37
@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

sequentialthinking: MCP interface diff

Base: f27b764e7050 (Merge pull request #5821 from modelcontextprotocol/v2/chore/5740-minimatch-11.0.8)
Head: the build in this checkout, at 9c59ccc5a7b7 (Merge 78ae7de into f27b764)

Diffed because it was named (--server).

✅ No interface changes detected.

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

Updated by this run for 78ae7ded41eedddb3c5169bdaa106c91d7b38fde.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

memory: MCP interface diff

Base: f27b764e7050 (Merge pull request #5821 from modelcontextprotocol/v2/chore/5740-minimatch-11.0.8)
Head: the build in this checkout, at 9c59ccc5a7b7 (Merge 78ae7de into f27b764)

Diffed because it was named (--server).

✅ No interface changes detected.

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

Updated by this run for 78ae7ded41eedddb3c5169bdaa106c91d7b38fde.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

everything: MCP interface diff

Base: f27b764e7050 (Merge pull request #5821 from modelcontextprotocol/v2/chore/5740-minimatch-11.0.8)
Head: the build in this checkout, at 9c59ccc5a7b7 (Merge 78ae7de into f27b764)

Diffed because it was named (--server).

✅ No interface changes detected.

Tools Prompts Resources Resource templates
Base 23 4 8 5
Head 23 4 8 5

Updated by this run for 78ae7ded41eedddb3c5169bdaa106c91d7b38fde.

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

filesystem: MCP interface diff

Base: f27b764e7050 (Merge pull request #5821 from modelcontextprotocol/v2/chore/5740-minimatch-11.0.8)
Head: the build in this checkout, at 9c59ccc5a7b7 (Merge 78ae7de into f27b764)

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 78ae7ded41eedddb3c5169bdaa106c91d7b38fde.

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 development-dependency overrides and lockfile updates.

No open issues 🎉

What changed in this PR

Updates development dependencies for the v2.7.0 release audit, addressing three Windows-only cross-spawn injection advisories without changing published server packages.

Changes:

  • Adds separate overrides for cross-spawn 6.x and 7.x, preserving dependents’ major-version ranges.
  • Updates locked versions to 6.0.10 and 7.1.2.
File Description
package.json Adds per-major overrides requiring patched versions.
package-lock.json Records updated versions, URLs, and integrity hashes.

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 5e39582 into v2/main Dec 5, 2026
59 checks passed
@cliffhall
cliffhall deleted the v2/chore/5820-release-audit branch December 5, 2026 07:53
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.

Release v2.7.0

2 participants