Skip to content

chore(security): resolve pnpm audit vulnerabilities (3 high, 3 moderate) - #438

Merged
tkislan merged 1 commit into
mainfrom
tk/dependency-vulnerabilities-2026-08-04
Aug 4, 2026
Merged

tkislan merged 1 commit into
mainfrom
tk/dependency-vulnerabilities-2026-08-04

Conversation

@tkislan

@tkislan tkislan commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Summary

pnpm audit currently fails CI (audit-all job) 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.overrides floor in the root package.json plus a lockfile refresh. No direct dependency is changed and no new override is added.

Advisories and remediation

Package Sev Advisory Vulnerable Override floor Resolved
fast-uri high GHSA-7p8r-x3mc-p8w7 — host confusion via backslash authority introducer >=3.0.0 <3.1.5 >=3.1.4 <4 → >=3.1.5 <4 3.1.4 → 3.1.5
ip-address high GHSA-mwp4-54f8-5fhr — leading-zero octets decoded as decimal vs octal, SSRF bypass <=10.3.0 >=10.1.1 → >=10.3.1 10.2.0 → 10.4.0
ip-address moderate GHSA-4xrf-jv44-h6hh — CIDR suffix suppresses special-use classification >=10.1.1 <=10.2.1 ⬑ same ⬑ same
ip-address moderate GHSA-22jq-vg5j-6vgg — IPv4-mapped/NAT64 IPv6 misclassification >=10.1.1 <=10.2.0 ⬑ same ⬑ same
brace-expansion high GHSA-rgw5-rvv9-x895 — DoS via unbounded intermediate arrays, bypassing the CVE-2026-14257 mitigation >=4.0.0 <5.0.9 >=5.0.8 → >=5.0.9 5.0.8 → 5.0.9
hono moderate GHSA-8j4g-w8fx-2239 — ReDoS in CORS middleware via Access-Control-Request-Headers <4.12.34 >=4.12.27 → >=4.12.34 4.12.32 → 4.13.0

The three ip-address advisories share a single remediation — >=10.3.1 is the highest patched floor and clears all three.

Why these ranges

fast-uri keeps its <4 upper bound. latest is 4.1.2, but the fix was backported to the 3.x line and published as the three dist-tag (3.1.5). Its consumer ajv@8.18.0 declares fast-uri: ^3.0.1, so a bare >=3.1.5 floor 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-expansion latest 5.0.9, ip-address latest 10.4.0, hono latest 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.5
  • minimatch@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.12 peer → hono: ^4 — satisfied by 4.13.0 (this is the only other lockfile change: the peer-resolution key 2.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.1 override 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-address reach the tree via @modelcontextprotocol/sdk's HTTP transport. @deepnote/mcp instantiates only StdioServerTransport (packages/mcp/src/server.ts:130) — the hono CORS middleware and the express rate limiter are never constructed at runtime.
  • brace-expansion is reached only through license-checker-rseidelsohn, a build-time devDependency. A DoS in a CI license checker is low impact.
  • fast-uri is reached only through ajv, which no workspace source imports directly — it arrives via @modelcontextprotocol/sdk (tool-schema validation) and @jupyterlab/settingregistry (settings-schema validation). Within ajv, fast-uri resolves $id/$ref URIs in those schemas, which come from the libraries and this repo's own tool definitions rather than from a caller.

Bumping license-checker-rseidelsohn or @modelcontextprotocol/sdk instead 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 found
  • pnpm audit --prod — no known vulnerabilities found
  • pnpm build — clean
  • pnpm typecheck — exit 0
  • pnpm license-check — exit 0
  • pnpm lintAndFormat — exit 0
  • pnpm test — 2641 passed, 1 skipped, identical to the pre-change baseline

Risk

Low. Lockfile-only dependency movement — no source changes. Fully reversible by reverting the commit; no migration or backfill. ip-address 10.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

  • Chores
    • Updated minimum supported versions for several third-party packages to incorporate newer dependency requirements and improvements.

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
@coderabbitai

coderabbitai Bot commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

Updated pnpm.overrides in package.json to raise the minimum versions for brace-expansion, fast-uri, hono, and ip-address. Other overrides in the same section remain unchanged.

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

Possibly related PRs

Suggested reviewers: dinohamzic, m1so

🚥 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.
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 Only package.json and pnpm-lock.yaml changed for dependency security updates; no feature was implemented, so documentation updates are not required.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the security remediation and the six pnpm audit vulnerabilities addressed by the pull request.

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

@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.36%. Comparing base (d339651) to head (33396ed).

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.
📢 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 August 4, 2026 11:39
@tkislan
tkislan requested a review from a team as a code owner August 4, 2026 11:39
@tkislan
tkislan requested a review from m1so August 4, 2026 11:40
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