github.com/Kuadrant/mcp-gateway
Affected
- introduced
0, fixed0.7.0(semver)
Fixed versions
0.7.0
Fix
- Fixed version
0.7.0go get github.com/Kuadrant/[email protected]
Advisory
Also known as: GO-2026-5390
MCP Gateway: Authority-injection and JWT/session bypass via the unauthenticated router hair-pin "router-key" / "mcp-init-host" path
Summary
The MCP router (ext_proc) exposes an initialize-method code path that, when a
request carries an mcp-init-host header, bypasses the gateway JWT session
validator and rewrites the upstream :authority header to whatever the caller
chooses, gated only by a single shared header value (router-key). The shared
value is
secret-api-key) baked into cmd/mcp-broker-router/main.go as a fall-back default, andMCPGatewayExtension UID — a non-secret value visible to anyone with get permission on the resource, and additionally exposed in argv because it is passed to the broker-router container via --mcp-router-key=....A request that satisfies the trivial header check is forwarded to any backend
listener registered with the gateway (including external services such asapi.githubcopilot.com when configured), bypassing both the broker (where the
signed x-mcp-authorized capability filter is enforced) and the gateway's
JWT-based session model.
Critical Basis: The source's own band: CRITICAL
0, fixed 0.7.0 (semver)0.7.0
0.7.0go get github.com/Kuadrant/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0