Skip to content

fix(security): pin MCP SDK and proxy-addr so production npm audit passes - #57

Merged
Roarpeng merged 1 commit into
mainfrom
cursor/pin-production-audit-overrides-d8ac
Oct 7, 2026
Merged

Roarpeng merged 1 commit into
mainfrom
cursor/pin-production-audit-overrides-d8ac

Conversation

@Roarpeng

@Roarpeng Roarpeng commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Why

Weekly npm audit --omit=dev on current main still fails, so the goal of #43 and #48 is not met. The original transitive pins (hono, @hono/node-server, body-parser, fast-uri, ip-address, qs, and the transformers 4.x / sharp path) are already on main via 2b38bcb. Two newer production advisories remain:

Package Severity Advisory Was Pin
@modelcontextprotocol/sdk high GHSA-6qxp-vccf-f47h (<1.31.0) ^1.30.0 (locked 1.30.0) ^1.32.1
proxy-addr critical GHSA-jqcg-44mw-7w3h (<2.0.8) express resolves ^2.0.7 → 2.0.7 override ^2.0.8

The SDK bump is the direct dependency in the root package and packages/efficiency-agent. proxy-addr stays an override because express has not raised its floor past the vulnerable release.

Validation

  • npm audit --omit=dev — exit 0, 0 vulnerabilities
  • npm run security:audit — exit 0
  • npx vitest run tests/security-audit-script.test.ts — 3 passed
  • npx vitest run tests/mcp-streamable-http.test.ts tests/mcp-http-session-ttl.test.ts tests/mcp-episode-roundtrip.test.ts — 14 passed against SDK 1.32.1

Fixes #43
Fixes #48

Open in Web Open in Cursor 

Weekly npm audit --omit=dev fails on main: @modelcontextprotocol/sdk
1.30.0 is inside GHSA-6qxp-vccf-f47h (<1.31.0), and express still resolves
proxy-addr 2.0.7 (GHSA-jqcg-44mw-7w3h). Bump the direct SDK dependency
and override proxy-addr to ^2.0.8 so the production audit is clean.

Fixes #43
Fixes #48
@Roarpeng
Roarpeng marked this pull request as ready for review October 7, 2026 09:42
@Roarpeng
Roarpeng merged commit aade832 into main Oct 7, 2026
13 checks passed
cursor Bot pushed a commit that referenced this pull request Oct 7, 2026
… fix

CHANGELOG conflicted after #57. Both Unreleased notes stay: the MCP SDK
and proxy-addr override, and closing skill-markdown graph clients.

Co-authored-by: RoarPeng <Roarpeng@users.noreply.github.com>
cursor Bot pushed a commit that referenced this pull request Oct 7, 2026
…e fix

CHANGELOG conflicted after #57. Both Unreleased notes stay: the MCP SDK
and proxy-addr override, and excludeGlobs / streaming dialogue record.

Co-authored-by: RoarPeng <Roarpeng@users.noreply.github.com>
@Roarpeng
Roarpeng deleted the cursor/pin-production-audit-overrides-d8ac branch October 8, 2026 13:48
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