Skip to content

fix(deps): resolve all high-severity Dependabot alerts - #82

Merged
rockyway merged 2 commits into
developfrom
fix/dependabot-high-severity-mcp-deps
Sep 7, 2026
Merged

fix(deps): resolve all high-severity Dependabot alerts#82
rockyway merged 2 commits into
developfrom
fix/dependabot-high-severity-mcp-deps

Conversation

@rockyway

@rockyway rockyway commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Summary

Resolves all 41 open high-severity Dependabot alerts (https://github.com/PMTLabs/termflow-core/security/dependabot), across two lockfiles:

mcp-server/package-lock.json

agent-monitor/package-lock.json

All changes are dependency bumps within (or, for express/@hono-node-server, just above) the existing package.json semver ranges. No application code changed except the express version pin itself.

One moderate-severity finding remains (ajv, pulled in transitively by @modelcontextprotocol/sdk) — no fixed version is available upstream yet.

Test plan

  • bun test in mcp-server — 73/73 passing (both before and after the Express 5 migration)
  • bun build --compile sidecar build succeeds
  • Manual smoke test of mcp-server under Express 5: GET /health (200), POST /mcp without session (400, expected error shape), DELETE /mcp on unknown session (404, expected Session not found)
  • tsc --noEmit clean in mcp-server (pre-existing unrelated bun:test type errors in one test file, verified present before this change too)
  • npm audit in both mcp-server and agent-monitor shows 0 high-severity findings after the bump
  • agent-monitor has no test suite (pre-existing); it also has pre-existing unrelated tsc errors in several files, verified present before this change and untouched by it

… Dependabot alerts

Resolves GitHub Dependabot alerts #107-#112 (axios prototype pollution,
SSRF, ReDoS, credential leaks; -> 1.20.0), #117 (form-data CRLF
injection; -> 4.0.6), and #120 (hono CORS credential reflection;
-> 4.13.7). Lockfile-only change; no package.json ranges needed
updating. Verified with bun install/test/build.
mcp-server: bump @modelcontextprotocol/sdk (1.25.3 -> 1.30.0), fast-uri
(-> 3.1.7), and migrate express 4 -> 5.2.1 (its transitive
path-to-regexp 0.1.x is permanently vulnerable on the 4.x line; no
upstream 4.x patch exists). The app only serves 3 literal routes
(/health, /mcp GET/POST/DELETE) with no dynamic path params, so the
migration needed no code changes. Verified with bun test (73/73
passing), a sidecar build, and a manual smoke test of all three routes.

agent-monitor: bump axios (-> 1.20.0), form-data (-> 4.0.6), ws
(8.18.3 -> 8.21.3, nested @microsoft/signalr copy 7.5.10 -> 7.5.13),
and jws (-> 3.2.3). Lockfile-only; package.json ranges already covered
these versions.

Together with the prior commit (axios/hono/form-data in mcp-server),
this closes 39 of the 41 open high-severity alerts on
github.com/PMTLabs/termflow-core/security/dependabot. The one
remaining moderate finding (ajv, pulled in by @modelcontextprotocol/sdk)
has no available fix upstream yet.
@rockyway
rockyway merged commit da1e7d4 into develop Sep 7, 2026
5 checks passed
@rockyway
rockyway deleted the fix/dependabot-high-severity-mcp-deps branch September 7, 2026 21:23
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