{"id":"GHSA-g53w-w6mj-hrpp","aliases":["GHSA-g53w-w6mj-hrpp","GO-2026-5390"],"related":[],"kind":"vulnerability","state":"published","title":"MCP Gateway: Authority-injection and JWT/session bypass via the unauthenticated router hair-pin \"router-key\" / \"mcp-init-host\" path","summary":"## Summary\n \nThe MCP router (ext_proc) exposes an `initialize`-method code path that, when a\nrequest carries an `mcp-init-host` header, bypasses the gateway JWT session\nvalidator and rewrites the upstream `:authority` header to whatever the caller\nchooses, gated only by a single shared header value (`router-key`). The shared\nvalue is\n\n* a literal string (`secret-api-key`) baked into `cmd/mcp-broker-router/main.go`\n  as a fall-back default, and\n* in controller-managed deployments, a SHA-256 truncation of the\n  `MCPGatewayExtension` UID — a non-secret value visible to anyone with `get`\n  permission on the resource, and additionally exposed in `argv` because it is\n  passed to the broker-router container via `--mcp-router-key=...`.\n\nA request that satisfies the trivial header check is forwarded to any backend\nlistener registered with the gateway (including external services such as\n`api.githubcopilot.com` when configured), bypassing both the broker (where the\nsigned `x-mcp-authorized` capability filter is enforced) and the gateway's\nJWT-based session model.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"## Summary\n \nThe MCP router (ext_proc) exposes an `initialize`-method code path that, when a\nrequest carries an `mcp-init-host` header, bypasses the gateway JWT session\nvalidator and rewrites the upstream `:authority` header to whatever the caller\nchooses, gated only by a single shared header value (`router-key`). The shared\nvalue is\n\n* a literal string (`secret-api-key`) baked into `cmd/mcp-broker-router/main.go`\n  as a fall-back default, and\n* in controller-managed deployments, a SHA-256 truncation of the\n  `MCPGatewayExtension` UID — a non-secret value visible to anyone with `get`\n  permission on the resource, and additionally exposed in `argv` because it is\n  passed to the broker-router container via `--mcp-router-key=...`.\n\nA request that satisfies the trivial header check is forwarded to any backend\nlistener registered with the gateway (including external services such as\n`api.githubcopilot.com` when configured), bypassing both the broker (where the\nsigned `x-mcp-authorized` capability filter is enforced) and the gateway's\nJWT-based session model.","format":"markdown","source":"ghsa"},{"lang":"en","text":"MCP Gateway: Authority-injection and JWT/session bypass via the unauthenticated router hair-pin \"router-key\" / \"mcp-init-host\" path in github.com/Kuadrant/mcp-gateway","format":"markdown","source":"go"}],"published":"2026-05-19T19:42:46.000Z","modified":"2026-07-21T15:00:41.004Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"CRITICAL"}],"cwes":["CWE-287","CWE-346","CWE-639"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.7.0"}],"ecosystem":"Go","package":"github.com/Kuadrant/mcp-gateway","purl":"pkg:golang/github.com/Kuadrant/mcp-gateway","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/Kuadrant/mcp-gateway","purl":"pkg:golang/github.com/Kuadrant/mcp-gateway","source":"go"}],"references":[{"url":"https://github.com/Kuadrant/mcp-gateway/security/advisories/GHSA-g53w-w6mj-hrpp","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/Kuadrant/mcp-gateway/commit/6052079283472aff99727058c92618178f86b2d7","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Kuadrant/mcp-gateway","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/Kuadrant/mcp-gateway/releases/tag/v0.7.0","tags":["web"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-g53w-w6mj-hrpp","url":"https://github.com/advisories/GHSA-g53w-w6mj-hrpp","licence":"CC-BY-4.0","modified":"2026-07-21T15:00:41.004Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5390","url":"https://pkg.go.dev/vuln/GO-2026-5390","licence":"CC-BY-4.0","modified":"2026-06-25T19:45:38.165Z"}],"updatedAt":"2026-11-25T22:56:24.828Z"}