Skip to content

chore(security): resolve pnpm audit vulnerabilities (1 moderate) - #593

Merged
tkislan merged 1 commit into
mainfrom
chore/pnpm-audit-2026-10-23
Oct 24, 2026
Merged

tkislan merged 1 commit into
mainfrom
chore/pnpm-audit-2026-10-23

Conversation

@tkislan

@tkislan tkislan commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

pnpm audit fails the Audit - Production and Audit - All jobs on main and on every open PR. A full Qlty scan (qlty check --all, osv-scanner plugin) reports the same advisory. One advisory affects a transitive production dependency:

Advisory Package Severity Path Fixed in
GHSA-rxp7-6hxx-x8q5 ip-address 10.7.2 moderate prod: mcp > @modelcontextprotocol/sdk > express-rate-limit > ip-address 10.7.4
   "pnpm": {
     "overrides": {
...
-      "ip-address": ">=10.5.1",
+      "ip-address": ">=10.7.4",

Override floor, not a direct dependency bump

Target version 10.7.4

  • It is the first patched version and the current latest. It was published 2026-10-11, well past the 24-hour minimumReleaseAge in renovate.json. The lockfile was resolved with --config.minimum-release-age=1440.
  • It is two patch releases on from 10.7.2 and adds no dependencies. 10.7.3 limits Address4.fromArpa input to 32 characters. 10.7.4 finds the zone identifier with indexOf instead of a regex.

Exposure

The advisory can't be reached in practice. In the SDK, only the server/auth/handlers/* modules load express-rate-limit. packages/mcp imports only server/index.js, server/stdio.js and types.js. The fix is still needed because pnpm audit --prod fails CI either way.

Lockfile

Not in this PR: zod (GHSA-mrhx-c7xc-m3w5)

A full Qlty scan also flags zod@3.25.76 with GHSA-mrhx-c7xc-m3w5 (high). The CI Qlty Check job doesn't show it, because on PR checkouts it reports "No modified files for checks were found" and scans nothing. pnpm audit doesn't report it yet either, because its advisory database lags GitHub, so the Audit jobs will likely start failing on it. This PR deliberately leaves zod alone until we decide how to handle it:

Verification

  • pnpm audit and pnpm audit --prod: no known vulnerabilities (both fail on main)
  • qlty check --all --filter osv-scanner: the ip-address finding is gone; only the zod finding above remains
  • pnpm install --frozen-lockfile: passes, and pnpm install --lockfile-only leaves the lockfile unchanged
  • The lockfile integrity hash matches npm view ip-address@10.7.4 dist.integrity
  • pnpm build, pnpm typecheck, pnpm lintAndFormat, pnpm spell-check: pass
  • pnpm test: 190 files, 3628 tests pass. Run locally with a python → python3 shim on PATH, which the cli/run.test.ts cases need in this workspace.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xojah1Cd55qFBFkBRZQAcy

@coderabbitai

coderabbitai Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 0f6e39ad-c15e-4170-b307-80c53fabe303
📥 Commits

Reviewing files that changed from the base of the PR and between 7e67416 and b733d73.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: 95210516-a74e-4779-8361-293d4a83469d
📥 Commits

Reviewing files that changed from the base of the PR and between 28d1d8b and 7e67416.

⛔ Files ignored due to path filters: 1
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing: 1
  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

📝 Walkthrough

The pnpm override for ip-address now requires version >=10.7.4 instead of >=10.5.1.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: jankoritak, jamesbhobbs

Merge Risk: ⚪ Minimal · up to 7e674

The dependency override change has no identified merge-blocking risk.

Pre-merge checks: Passed 6
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: resolving a moderate security vulnerability through a dependency override update.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Updates Docs Passed PASS: This PR changes only the transitive ip-address override and lockfile entries. It does not implement a feature or change user-facing behavior, so documentation and roadmap updates are not requi…
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Full details: Updates Docs

Explanation

PASS: This PR changes only the transitive ip-address override and lockfile entries. It does not implement a feature or change user-facing behavior, so documentation and roadmap updates are not required. The linked private repository was not inspected; no roadmap change is applicable to this dependency-only PR.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.56%. Comparing base (28d1d8b) to head (b733d73).

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #593    +/-   ##
========================================
  Coverage   90.56%   90.56%            
========================================
  Files         217      217            
  Lines       12741    12741            
  Branches     3685     3578   -107     
========================================
  Hits        11539    11539            
  Misses       1199     1199            
  Partials        3        3            

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

pnpm audit fails the Audit CI jobs on every branch with one moderate
advisory in a transitive production dependency:

- ip-address <=10.7.3: Address6 matches a zone identifier in quadratic
  time ahead of its length limit (GHSA-rxp7-6hxx-x8q5), via
  mcp > @modelcontextprotocol/sdk > express-rate-limit.

Raise the existing pnpm.overrides floor (ip-address >=10.5.1 ->
>=10.7.4) and refresh the lockfile. No direct dependency changes: the
latest SDK and every express-rate-limit release still declare
ip-address ^10.2.0, so no upstream bump carries the fix.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Xojah1Cd55qFBFkBRZQAcy
@tkislan
tkislan force-pushed the chore/pnpm-audit-2026-10-23 branch from 7e67416 to b733d73 Compare October 23, 2026 20:31
@tkislan
tkislan marked this pull request as ready for review October 23, 2026 20:59
@tkislan
tkislan requested a review from a team as a code owner October 23, 2026 20:59
@tkislan
tkislan merged commit 8121944 into main Oct 24, 2026
22 checks passed
@tkislan
tkislan deleted the chore/pnpm-audit-2026-10-23 branch October 24, 2026 14:13
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