Skip to content

fix: remediate dependency audit vulnerabilities - #515

Merged
tkislan merged 1 commit into
mainfrom
chore/security-audit-2026-09-08
Sep 9, 2026
Merged

tkislan merged 1 commit into
mainfrom
chore/security-audit-2026-09-08

Conversation

@tkislan

@tkislan tkislan commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Remediate the six advisories reported by pnpm audit using the repository’s existing dependency strategy.

Decisions

  • GHSA-82fw-gwwq-j7x9 / CVE-2026-84373 (Vitest path traversal): vitest and @vitest/mocker were development-only at 4.1.8. Upgrade the direct Vitest test tooling and coverage package to the fixed 4.1.11 release. No standalone @vitest/mocker override was added because it is controlled transitively by Vitest.
  • GHSA-2883-xcg3-v3hh / CVE-2026-84375 (js-yaml CPU exhaustion): js-yaml is transitive through CLI build tooling (json-schema-to-typescript). Raise the existing root override from >=4.3.1 <5 to >=4.3.2 <5; do not add a direct dependency.
  • GHSA-gqvv-2mrq-wpjv / CVE-2026-84365 (Hono toSSG traversal), GHSA-g6gw-c38x-mqfc / CVE-2026-84364 (Hono parseBody exhaustion), and GHSA-crvj-82cr-hjcx / CVE-2026-84363 (Hono query parsing): all affect the same transitive hono@4.13.2 under @modelcontextprotocol/sdk. Raise the existing root override from >=4.12.34 to >=4.13.5, resolving 4.13.7. No MCP SDK or direct Hono dependency change is needed.

Representative manifest diff

-"@vitest/coverage-v8": "4.1.8",
+"@vitest/coverage-v8": "4.1.11",
-"vitest": "4.1.8",
+"vitest": "4.1.11",
-"hono": ">=4.12.34",
+"hono": ">=4.13.5",
-"js-yaml": ">=4.3.1 <5",
+"js-yaml": ">=4.3.2 <5",

The lockfile was regenerated with pnpm and updates Vitest packages, Hono to 4.13.7, and js-yaml to 4.3.2.

Validation

  • pnpm audit --json: 0 vulnerabilities
  • pnpm audit --prod: no known vulnerabilities
  • pnpm install --frozen-lockfile: passed
  • pnpm test: 3,146 passed, 1 skipped
  • pnpm typecheck: passed
  • pnpm biome:check: passed with 8 existing warnings in example server files

Summary by CodeRabbit

  • Chores
    • Updated testing and code coverage tooling.
    • Raised minimum supported versions for select security and compatibility dependencies.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Essentials

Run ID: 71c6d0d4-bd84-4ecc-84f5-bd0d1821653e

📥 Commits

Reviewing files that changed from the base of the PR and between 9d6fb3b and 60b9b55.

⛔ 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: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

Updated @vitest/coverage-v8 and vitest from 4.1.8 to 4.1.11. Raised the pnpm overrides for hono to 4.13.5 and js-yaml to 4.3.2. Kept the ip-address override unchanged.

Priority: ➖ Normal

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

Merge Risk: ⚪ Minimal · up to 60b9b

This updates vulnerable dependency resolutions and test tooling. The supplied validation reports successful installation, audit, tests, and type checking, with no current merge-readiness risk identified.

Suggested reviewers: jamesbhobbs, dinohamzic, m1so, mfranczel

🚥 Pre-merge checks | ✅ 6
✅ Passed checks (6 passed)
Check name Status Explanation
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 pull request does not implement a feature. The verified diff changes only package.json and pnpm-lock.yaml for dependency security updates. No documentation or roadmap update is required by …
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: updating dependencies to remediate audit vulnerabilities.

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

@codecov

codecov Bot commented Sep 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.07%. Comparing base (9d6fb3b) to head (60b9b55).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #515   +/-   ##
=======================================
  Coverage   89.07%   89.07%           
=======================================
  Files         201      201           
  Lines       11521    11521           
  Branches     3239     3239           
=======================================
  Hits        10262    10262           
  Misses       1257     1257           
  Partials        2        2           

☔ 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.

@tkislan
tkislan marked this pull request as ready for review September 9, 2026 07:57
@tkislan
tkislan requested a review from a team as a code owner September 9, 2026 07:57
@tkislan
tkislan merged commit 8cd8832 into main Sep 9, 2026
21 checks passed
@tkislan
tkislan deleted the chore/security-audit-2026-09-08 branch September 9, 2026 09:33
tkislan added a commit that referenced this pull request Oct 22, 2026
pnpm audit reports two advisories in @vitest/mocker 4.1.11, a dev-only
dependency that comes in through the root devDependency vitest. Both
are fixed in @vitest/mocker 4.1.12, the version vitest 4.1.12 pins
exactly.

- GHSA-qxg6-89mg-rqv8 (moderate): code injection via unauthenticated
  manual mock registration. Affects >=2.1.0-beta.7 <4.1.12.
- GHSA-xp26-3454-mjgp (moderate): a Windows backslash traversal that
  bypasses the redirect allowlist fix for GHSA-82fw-gwwq-j7x9, which
  #515 shipped as 4.1.11. Affects >=4.1.11 <4.1.12.

vitest is declared directly, so bump it in place rather than adding an
@vitest/mocker override, as #387 and #515 did. Move vitest and
@vitest/coverage-v8 4.1.11 -> 4.1.12 together, in devDependencies and
in their exact pnpm.overrides entries: coverage-v8 4.1.12 peers on
vitest 4.1.12 exactly. A standalone mocker override would leave vitest
4.1.11 pinning @vitest/spy 4.1.11 next to mocker's @vitest/spy 4.1.12.
4.1.12 is the newest 4.x release, published 2026-10-15, past
renovate.json's 24h minimumReleaseAge.

The lockfile moves only the vitest family (vitest and nine @vitest/*
packages) and the @inquirer/testing snapshot that peers on vitest.
Regenerating it also added libc/deprecated registry metadata to 50
package entries whose versions did not change; those lines were removed
so the diff holds only real changes, as in #588. pnpm install
--lockfile-only is a no-op on the result.


Claude-Session: https://claude.ai/code/session_01Xojah1Cd55qFBFkBRZQAcy

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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