Skip to content

This release includes 2 security fixes for security teams reviewing exposed deployments.

Published 1mo MCP Developer Tools
✓ No known CVEs patched
Read the diff → Tool health → What is this tool? →
This release patches 2 known CVEs

Topics

admin-api ai-gateway llm llmops mcp mcp-server
+3 more
model-context-protocol portkey typescript

Affected surfaces

auth rce_ssrf

Summary

AI summary

Sanitize MCP-Protocol-Version header and remove Redis details from /auth/info to close unvalidated-input reflection paths.

Full changelog

Security hardening, pagination params, compact tool responses, and a major test-coverage expansion from a four-domain code review — plus this is the first release cut entirely by automation and published to npm via OIDC trusted publishing with SLSA provenance attestation. Tool-param additions are additive; no breaking API surface changes.

Security

  • Sanitize the caller-supplied MCP-Protocol-Version header before echoing it in HTTP error responses — truncated to 64 chars and restricted to [A-Za-z0-9._-], closing an unvalidated-input reflection path.
  • Remove Redis configuration details from the unauthenticated /auth/info response to reduce infrastructure fingerprinting.
  • Send Strict-Transport-Security only when TLS is enabled, instead of emitting HSTS on plain-HTTP responses.
  • Emit a startup warning when ALLOWED_ORIGINS=* is combined with MCP_AUTH_MODE=none.
  • Hash service-cache map keys with SHA-256 so plaintext API keys are never used as in-process cache identifiers.
  • Route health checks through BaseService so they receive the same SSRF URL validation and structured error parsing as every other upstream call.
  • create_api_key description now warns that the key secret is returned exactly once and will appear in MCP transcripts and LLM context.

Added

  • Pagination params on six list toolslist_virtual_keys, list_configs, list_all_users, list_user_invites, list_mcp_server_capabilities, and list_mcp_server_user_access now accept optional current_page/page_size inputs; the two MCP-server lists also surface has_more.
  • Cross-field validation for create_api_key — the workspace key type now requires workspace_id at the Zod schema layer.
  • 140 new tests (suite: 114 → 269) covering 13 previously untested tool modules, Clerk JWT auth mode, DELETE /mcp and SSE GET /mcp session endpoints, abort/timeout and upstream-error propagation paths, and contract schemas with live-recorded fixtures for workspaces and users.

Changed

  • Compact JSON tool responses (~157 call sites) — tool responses no longer pretty-print, reducing response token usage on every tool call.
  • Lazy Redis import — the redis client loads only when the Redis event store is actually constructed.
  • create_integration/update_integration preserve empty strings instead of silently dropping them.
  • migrate_prompt/promote_prompt internal lookups request a small page instead of a full listing.
  • PORTKEY_BASE_URL validated once per service container, failing fast with a single clear error.
  • HTTP transport repositioned as proof of concept — there is no hosted version; stdio via npx is the supported transport.

Release automation (new in this cycle)

Merging a version bump to main now cuts the whole release: auto-tag → full CI against the tag → npm publish via OIDC trusted publishing (no stored tokens, provenance attested) → GitHub Release → MCP Registry. See docs/RELEASE.md.

What's Changed

  • v0.3.7: review-driven hardening, pagination, test coverage, release automation by @scttbnsn in https://github.com/CodesWhat/portkey-admin-mcp/pull/13

Full Changelog: https://github.com/CodesWhat/portkey-admin-mcp/compare/v0.3.6...v0.3.7

Security Fixes

  • Sanitize and truncate the caller‑supplied `MCP-Protocol-Version` header (max 64 chars, allowed characters `[A-Za-z0-9._-]`) to close an unvalidated‑input reflection vulnerability
  • Remove Redis configuration details from the unauthenticated `/auth/info` response

Weekly OSS security release digest.

The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.

No spam, unsubscribe anytime.

Share this release

Track s-b-e-n-s-o-n/portkey-admin-mcp

Get notified when new releases ship.

Sign up free

About s-b-e-n-s-o-n/portkey-admin-mcp

MCP server for the Portkey AI Gateway Admin API — 150 tools for prompts, configs, analytics, keys, guardrails, integrations, and more.

All releases →

Beta — feedback welcome: [email protected]