Repository navigation
chore(security): resolve pnpm audit vulnerabilities (3 high, 3 moderate) - #438
Merged
Merged
Conversation
All 6 advisories are in transitive dependencies; none of the affected packages is a direct dependency of any workspace package. Following the existing convention, each is remediated by raising an existing `pnpm.overrides` floor plus a lockfile refresh. Override floors raised: - brace-expansion >=5.0.8 -> >=5.0.9 (5.0.8 -> 5.0.9) - fast-uri >=3.1.4 -> >=3.1.5 (3.1.4 -> 3.1.5) - hono >=4.12.27 -> >=4.12.34 (4.12.32 -> 4.13.0) - ip-address >=10.1.1 -> >=10.3.1 (10.2.0 -> 10.4.0) fast-uri keeps its `<4` upper bound: 4.1.2 is the current `latest`, but its consumer ajv 8.18.0 declares `fast-uri: ^3.0.1`, so a bare `>=3.1.5` floor would resolve past ajv's supported range. The fix is backported to the 3.x line, published as the `three` dist-tag. The other three take a bare `>=` floor, consistent with the rest of the overrides: no newer major exists for any of them, so no floor can jump a major boundary. hono 4.13.0 satisfies both @modelcontextprotocol/sdk's `^4.11.4` and @hono/node-server 2.0.12's `hono: ^4` peer range. The three ip-address advisories (GHSA-mwp4-54f8-5fhr, GHSA-4xrf-jv44-h6hh, GHSA-22jq-vg5j-6vgg) share one remediation; >=10.3.1 clears all three. `pnpm audit` and `pnpm audit --prod` both report no known vulnerabilities. Build, typecheck, license-check, lint and the full test suite (2641 tests) pass. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019ym25nnxoNoaVdX3CrZwUw
Contributor
📝 WalkthroughWalkthroughUpdated Estimated code review effort: 1 (Trivial) | ~2 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #438 +/- ##
=======================================
Coverage 87.36% 87.36%
=======================================
Files 181 181
Lines 9494 9494
Branches 2699 2699
=======================================
Hits 8294 8294
Misses 1199 1199
Partials 1 1 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
dinohamzic
approved these changes
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pnpm auditcurrently fails CI (audit-alljob) with 6 advisories — 3 high, 3 moderate across 4 packages. There is no audit-ignore config in the repo, so all 6 are in scope.All 6 are in transitive dependencies — none of the affected packages is declared directly by any workspace package. Following the convention established in #434, each is remediated by raising an existing
pnpm.overridesfloor in the rootpackage.jsonplus a lockfile refresh. No direct dependency is changed and no new override is added.Advisories and remediation
fast-uri>=3.0.0 <3.1.5>=3.1.4 <4→>=3.1.5 <4ip-address<=10.3.0>=10.1.1→>=10.3.1ip-address>=10.1.1 <=10.2.1ip-address>=10.1.1 <=10.2.0brace-expansion>=4.0.0 <5.0.9>=5.0.8→>=5.0.9honoAccess-Control-Request-Headers<4.12.34>=4.12.27→>=4.12.34The three
ip-addressadvisories share a single remediation —>=10.3.1is the highest patched floor and clears all three.Why these ranges
fast-urikeeps its<4upper bound.latestis 4.1.2, but the fix was backported to the 3.x line and published as thethreedist-tag (3.1.5). Its consumerajv@8.18.0declaresfast-uri: ^3.0.1, so a bare>=3.1.5floor would resolve to 4.1.2 and silently push past ajv's supported range. This is the same reasoning that added the bound in #434.The other three take a bare
>=floor, consistent with the rest of the overrides in this file. No newer major is published for any of them (brace-expansionlatest 5.0.9,ip-addresslatest 10.4.0,honolatest 4.13.0), so no floor can jump a major boundary. Adding speculative upper bounds would be inconsistent with how the file treats every other bare-floor override.Consumer ranges were checked against the installed packages and all remain satisfied:
ajv@8.18.0→fast-uri: ^3.0.1— satisfied by 3.1.5minimatch@10.2.4→brace-expansion: ^5.0.2— satisfied by 5.0.9@modelcontextprotocol/sdk@1.26.0→hono: ^4.11.4— satisfied by 4.13.0@hono/node-server@2.0.12peer →hono: ^4— satisfied by 4.13.0 (this is the only other lockfile change: the peer-resolution key2.0.12(hono@4.12.32)→2.0.12(hono@4.13.0); the package version itself is unchanged)express-rate-limit@8.3.0→ip-address: 10.1.0(exact pin) — the override intentionally lifts this to 10.4.0, staying within the same major. The pre-existing>=10.1.1override already overrode this pin, so this is not a new deviation.Exposure
Not urgent in practice, but CI fails on it either way:
hono/ip-addressreach the tree via@modelcontextprotocol/sdk's HTTP transport.@deepnote/mcpinstantiates onlyStdioServerTransport(packages/mcp/src/server.ts:130) — the hono CORS middleware and the express rate limiter are never constructed at runtime.brace-expansionis reached only throughlicense-checker-rseidelsohn, a build-time devDependency. A DoS in a CI license checker is low impact.fast-uriis reached only throughajv, which no workspace source imports directly — it arrives via@modelcontextprotocol/sdk(tool-schema validation) and@jupyterlab/settingregistry(settings-schema validation). Within ajv,fast-uriresolves$id/$refURIs in those schemas, which come from the libraries and this repo's own tool definitions rather than from a caller.Bumping
license-checker-rseidelsohnor@modelcontextprotocol/sdkinstead was considered and rejected: both are wider-blast-radius changes than raising the leaf floor, and neither matches the convention already established in this file.Verification
All run locally on this branch:
pnpm audit— no known vulnerabilities foundpnpm audit --prod— no known vulnerabilities foundpnpm build— cleanpnpm typecheck— exit 0pnpm license-check— exit 0pnpm lintAndFormat— exit 0pnpm test— 2641 passed, 1 skipped, identical to the pre-change baselineRisk
Low. Lockfile-only dependency movement — no source changes. Fully reversible by reverting the commit; no migration or backfill.
ip-address10.2.0 → 10.4.0 is the largest single jump but stays within the same major and its consumer is never exercised at runtime.🤖 Generated with Claude Code
https://claude.ai/code/session_019ym25nnxoNoaVdX3CrZwUw
Summary by CodeRabbit