GHSA-g53w-w6mj-hrpp — mcp-gateway
Fix: Kuadrant/mcp-gateway@6052079GHSA-g53w-w6mj-hrpp is a security vulnerability in github.com/Kuadrant/mcp-gateway. A fix is available for github.com/Kuadrant/mcp-gateway — see the affected versions and patch details below.
MCP Gateway: Authority-injection and JWT/session bypass via the unauthenticated router hair-pin "router-key" / "mcp-init-host" path
Real-World Exposure
github.com/Kuadrant/mcp-gatewayReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
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 intocmd/mcp-broker-router/main.goas a fall-back default, and - in controller-managed deployments, a SHA-256 truncation of the
MCPGatewayExtensionUID — a non-secret value visible to anyone withgetpermission 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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/Kuadrant/mcp-gateway | all versions | 0.7.0go get github.com/Kuadrant/mcp-gateway@v0.7.0 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/Kuadrant/mcp-gateway, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/Kuadrant/mcp-gateway to 0.7.0 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-g53w-w6mj-hrpp is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is GHSA-g53w-w6mj-hrpp in your dependencies?
Find it across Go, including transitive dependencies.