patchbay audit
·4 min read

Two new checks, two CVE classes, eleven live hits

Two new patchbay checks shipped today. One of them fired on eleven servers in the first full-registry crawl.

SESSION-BINDING-001

MCP's streamable-http transport uses an Mcp-Session-Id header to route follow-up requests to a server-side session state. The transport doesn't define how that ID must be bound: it's the server's job to tie each session to the principal that created it and reject any request whose session ID was not issued to the presenting principal.

CVE-2026-52869 (MCP Python SDK) was exactly this gap. The SDK routed on session ID alone and did not re-verify the caller's bearer. Any principal who learned the ID could walk into the session.

SESSION-BINDING-001 is the probe-and-check pair that catches this class of bug on any live MCP server without credentials. patchbay sends two independent initialize calls from the same source and inspects the returned session-ID headers:

  • high — sameSession: both calls returned the identical Mcp-Session-Id. Either the server is reusing one global session, or it is deriving the ID from something the caller controls. Either way, session isolation is broken.
  • medium — lowEntropy: both IDs are distinct but at least one is shorter than 22 base64-safe characters (~128 bits). Guessable session IDs convert a missing-auth gap elsewhere into a session-hijack path.

UPSTREAM-IDENTITY-BYPASS-001

CVE-2026-110278 and CVE-2026-110279 — IBM ContextForge, CVSS 9.8 each. The gateway was built to proxy MCP requests to a backend with the gateway's own credentials, but when the client sent an X-Upstream-User header, the gateway forwarded that header as the identity to the backend instead of the configured upstream credential. Client sets X-Upstream-User: admin and the backend trusts it.

UPSTREAM-IDENTITY-BYPASS-001 sends tools/list with only the forged header and no Authorization, and fires critical if the server returns 200.

The probe is opt-in at crawl scale. Sending X-Upstream-User: admin to seven hundred third-party servers in one sweep reads like a credential-sweep from the operator's logs even though the request is technically harmless on a correctly-built server. The check is shipped; the mass probe isn't. You can run it against your own hosts:

npx -y @patchbay-nebius/agent audit --probe-upstream-identity https://your-mcp.example.com/mcp

Eleven live hits on SESSION-BINDING-001

First full-registry crawl with the new check: 1,473 public MCP servers scanned, eleven SESSION-BINDING-001 findings, all sameSession outcome (the high-severity path), concentrated at two operators. One operator exposes 10 endpoints that all share the same backend bug; the other has one endpoint affected. Session isolation is broken at eleven distinct MCP URLs in the official registry today.

We've started coordinated disclosure with both operators before naming them here. The leaderboard shows the finding on each affected URL already.

Why these two checks together

Both of them have the same shape: someone trusted an identifier that came from the wrong place.

  • SESSION-BINDING-001: the server trusts Mcp-Session-Id as if it proves identity, when it's only a routing key that anyone who learned it can replay.
  • UPSTREAM-IDENTITY-BYPASS-001: the server trusts X-Upstream-User as if it proves identity, when it's a header the client controls.

Both were caught in the wild — Python MCP SDK, IBM ContextForge — and both will keep appearing in new servers until the primitives are either removed from the protocol or hardened by default. patchbay catches both classes now on every rescan of every server in the public registry.

Run it

npx -y @patchbay-nebius/agent audit https://your-mcp.example.com/mcp

Live leaderboard with per-server findings: patchbay-mcp.dev/leaderboard. Source: github.com/GodSmasher/patchbay.