GHSA-g53w-w6mj-hrpp
CRITICALMCP 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
- a literal string (
secret-api-key) baked intocmd/mcp-broker-router/main.go
as a fall-back default, and - in controller-managed deployments, a SHA-256 truncation of the
MCPGatewayExtensionUID — a non-secret value visible to anyone withget
permission on the resource, and additionally exposed inargvbecause 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 as
api.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.
- Published
- 19 May 2026
- Last modified
- 21 Jul 2026
- Weakness
- CWE-287CWE-346CWE-639
- Also known as
- GO-2026-5390
- Sources
- OSVJSONOSV GO-2026-5390JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Go | github.com/Kuadrant/mcp-gateway | < 0.7.0 | 0.7.0 |
| OSV | Go | github.com/Kuadrant/mcp-gateway | all versions |
References
- https://github.com/Kuadrant/mcp-gateway/security/advisories/GHSA-g53w-w6mj-hrpp · WEB, ADVISORY
- https://github.com/Kuadrant/mcp-gateway/commit/6052079283472aff99727058c92618178f86b2d7 · WEB
- https://github.com/Kuadrant/mcp-gateway · PACKAGE
- https://github.com/Kuadrant/mcp-gateway/releases/tag/v0.7.0 · WEB
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Jun 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 19 May 2026)