# GHSA-g53w-w6mj-hrpp: MCP Gateway: Authority-injection and JWT/session bypass via the unauthenticated router hair-pin "router-key" / "mcp-init-host" path

- Severity: Critical (CVSS:4.0, scored by GitHub) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-19T19:42:46.000Z
- Modified: 2026-07-21T15:00:41.004Z
- Also known as: GO-2026-5390
- Weaknesses: CWE-287, CWE-346, CWE-639

## Description

## 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 into `cmd/mcp-broker-router/main.go`
  as a fall-back default, and
* in controller-managed deployments, a SHA-256 truncation of the
  `MCPGatewayExtension` 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 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.

(As written by GitHub Advisory Database.)

## Affected

- github.com/Kuadrant/mcp-gateway (Go): before 0.7.0; all versions

## References

- <https://github.com/Kuadrant/mcp-gateway/security/advisories/GHSA-g53w-w6mj-hrpp> (advisory, web)
- <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)

## Sources

- GitHub Advisory Database: [GHSA-g53w-w6mj-hrpp](https://github.com/advisories/GHSA-g53w-w6mj-hrpp), CC-BY-4.0, modified 2026-07-21
- Go Vulnerability Database: [GO-2026-5390](https://pkg.go.dev/vuln/GO-2026-5390), CC-BY-4.0, modified 2026-06-25

---

Page: https://cve.day/GHSA-g53w-w6mj-hrpp · Whole record: https://cve.day/GHSA-g53w-w6mj-hrpp.json · Rebuilt by cve.day 2026-11-25T22:56:24.828Z
