Skip to content

v1.x npm audit fix#1780

Merged
felixweinberger merged 2 commits intov1.xfrom
fix/v1-audit-fix-27032026
Mar 27, 2026
Merged

v1.x npm audit fix#1780
felixweinberger merged 2 commits intov1.xfrom
fix/v1-audit-fix-27032026

Conversation

@KKonstantinov
Copy link
Copy Markdown
Contributor

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

@KKonstantinov KKonstantinov requested a review from a team as a code owner March 27, 2026 08:42
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 27, 2026

⚠️ No Changeset found

Latest commit: 40fb3c4

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.

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 27, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@modelcontextprotocol/sdk@1780

commit: 40fb3c4

Copy link
Copy Markdown

@claude claude bot left a comment

Choose a reason for hiding this comment

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

LGTM, straightforward npm audit fix on lockfile only.

Extended reasoning...

Overview

This PR runs npm audit fix on the v1.x branch, modifying only package-lock.json. The changes consist of version bumps for dev dependencies (rollup 4.53→4.60, typescript-eslint 8.48→8.57, eslint 9.39.1→9.39.4, ajv 6.12→6.14, etc.), removal of duplicate/unused entries (graphemer, picomatch duplicates), and addition of new optional platform entries (openbsd-x64, loong64-musl, ppc64-musl).

Security risks

No security risks. This is purely a lockfile update from npm audit fix — it addresses known vulnerabilities in transitive dependencies by bumping them to patched versions. No source code is changed.

Level of scrutiny

Low scrutiny is appropriate. This is a mechanical, tool-generated lockfile change with no source code modifications. The lockfile is not published to npm (the files field only includes dist/), so the impact is limited to the development/CI environment.

Other factors

The bug report identifies a cosmetic issue where npm audit fix incorrectly added "peer": true to several direct runtime dependencies (express, hono, zod) and dev dependencies (eslint, typescript, tsx, acorn, vite). This is a known npm quirk and is functionally harmless — npm ci and npm install both resolve dependencies correctly regardless of this flag. The only theoretical risk (npm ci --omit=peer) is an extremely uncommon invocation. While regenerating the lockfile cleanly would be ideal, this nit does not block the PR.

@felixweinberger felixweinberger merged commit 364f38c into v1.x Mar 27, 2026
10 checks passed
@felixweinberger felixweinberger deleted the fix/v1-audit-fix-27032026 branch March 27, 2026 12:17
felixweinberger added a commit that referenced this pull request Mar 27, 2026
Clears all 37 open Dependabot alerts on main (v2). Sibling to #1780 which
did the same for v1.x.

Approach: pnpm overrides only — no catalog floor bumps. The ^-range floors
are compatibility statements; consumers already get latest on fresh install,
and our floors don't protect their lockfiles. Raising peer dep floors (hono)
would be a soft breaking change that isn't ours to make.

Changes:
- Moved resolutions from package.json → pnpm-workspace.yaml overrides
- Added 17 range-targeted overrides forcing patched versions of transitive
  deps in our lockfile (ajv, hono, @hono/node-server, minimatch, picomatch,
  brace-expansion, rollup, flatted, markdown-it, qs, yaml, undici,
  express-rate-limit)
- Bumped better-auth ^1.4.17 → ^1.4.22 in examples (clears kysely/undici
  transitives)
- Exempted 4 packages from 7-day minimumReleaseAge for fresh security patches

Result: pnpm audit 44 → 0 vulnerabilities. No published-package API changes.
felixweinberger added a commit that referenced this pull request Mar 27, 2026
Clears all 37 open Dependabot alerts on main (v2). Sibling to #1780 which
did the same for v1.x.

Approach: pnpm overrides only — no catalog floor bumps. The ^-range floors
are compatibility statements; consumers already get latest on fresh install,
and our floors don't protect their lockfiles. Raising peer dep floors (hono)
would be a soft breaking change that isn't ours to make.

Changes:
- Moved resolutions from package.json → pnpm-workspace.yaml overrides
- Added 17 range-targeted overrides forcing patched versions of transitive
  deps in our lockfile (ajv, hono, @hono/node-server, minimatch, picomatch,
  brace-expansion, rollup, flatted, markdown-it, qs, yaml, undici,
  express-rate-limit)
- Bumped better-auth ^1.4.17 → ^1.4.22 in examples (clears kysely/undici
  transitives)
- Exempted 4 packages from 7-day minimumReleaseAge for fresh security patches

Result: pnpm audit 44 → 0 vulnerabilities. No published-package API changes.
felixweinberger added a commit that referenced this pull request Mar 27, 2026
Clears all 37 open Dependabot alerts on main (v2). Sibling to #1780 which
did the same for v1.x.

Approach: pnpm overrides only — no catalog floor bumps. The ^-range floors
are compatibility statements; consumers already get latest on fresh install,
and our floors don't protect their lockfiles. Raising peer dep floors (hono)
would be a soft breaking change that isn't ours to make.

Changes:
- Moved resolutions from package.json → pnpm-workspace.yaml overrides
- Added 17 range-targeted overrides forcing patched versions of transitive
  deps in our lockfile (ajv, hono, @hono/node-server, minimatch, picomatch,
  brace-expansion, rollup, flatted, markdown-it, qs, yaml, undici,
  express-rate-limit)
- Bumped better-auth ^1.4.17 → ^1.4.22 in examples (clears kysely/undici
  transitives)
- Exempted 4 packages from 7-day minimumReleaseAge for fresh security patches

Result: pnpm audit 44 → 0 vulnerabilities. No published-package API changes.
felixweinberger pushed a commit that referenced this pull request Mar 27, 2026
Address npm audit. Sibling to #1780.

Lockfile-only regen — existing ^-ranges already allowed patched versions,
the lockfile was just pinning stale resolutions.

pnpm audit: 45 → 0 vulnerabilities.
felixweinberger added a commit that referenced this pull request Mar 27, 2026
Address npm audit. Sibling to #1780.

Lockfile-only regen — existing ^-ranges already allowed patched versions,
the lockfile was just pinning stale resolutions.

pnpm audit: 45 → 0 vulnerabilities.
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.

2 participants