SSRF in Amazon's MCP gateway registry: when a server's upstream URL points inward
AWS patched a server-side request forgery in the open-source MCP gateway registry: any user allowed to register an MCP server could aim the gateway at internal services, including cloud metadata.
What is this?
On November 11, 2026, AWS published security bulletin 2026-180-AWS, rated “Important”, together with a GitHub security advisory for mcp-gateway-registry, an open-source project from the agentic-community organization that gives teams one place to register Model Context Protocol (MCP) servers, control who can reach them, and proxy agent tool calls to them.
The flaw is a server-side request forgery (SSRF, CWE-918) in the server registration and update API. The registry did not validate the upstream address of a registered MCP server. A user allowed to register or edit a server could set that address to a service on the deployment’s internal network, and the gateway would then send requests there. In some cases it returned the responses to the user.
The GitHub advisory scores it 8.5 (High) under CVSS 3.1, with low privileges required and a scope change. Versions 1.0.3 through 1.34.0 are affected; 1.35.0, published on GitHub on October 29, 2026, is the fixed release. The researcher credited for the coordinated disclosure goes by the handle novice-22.
This is the second published flaw in the same project this year: in July 2026 we covered an identifier-position SQL injection in its API.
How it works
An MCP gateway is, by design, a request-forwarding machine. When an agent calls a tool through the gateway, the gateway looks up the registered server and relays the call to that server’s upstream URL. The registration record is therefore a routing instruction that the gateway will execute on behalf of anyone who later calls the tool.
Simplified, the vulnerable pattern looks like this:
1. User with "register server" right -> POST server entry
upstream = <attacker-chosen URL>
2. Registry stores the entry (no check on where the URL points)
3. Tool call routed through gateway -> gateway connects to upstream
4. Gateway relays the upstream reply -> caller sees the internal response
Because the gateway runs inside the deployment, its network position is privileged: it can usually reach other containers, admin interfaces, databases with HTTP front-ends and, on cloud hosts, the instance metadata service. AWS and the advisory both note that, depending on network configuration, reachable targets “could include” the metadata service and the credentials it issues. Neither document reports credential theft or exploitation in the wild.
Two details in the bulletin matter for operators:
- The version trap. A separate, unrelated issue in the external management API was fixed in 1.25.0. Teams that upgraded then may assume they are covered. They are not: anything from 1.25.0 to 1.34.0 is still affected.
- The fix is not retroactive. 1.35.0 validates upstream addresses when a server is registered or modified. It does not re-check entries already stored. A malicious upstream registered before the upgrade stays in place until someone removes it.
Example prompt
Illustrative and redacted: this shows the shape of the weakness, not a usable payload.
# MCP gateway registration triage (illustrative, defensive, redacted)
# Pattern: a server entry whose upstream URL points inside the deployment.
# name -> "weather-tools" (looks harmless)
# upstream -> http://[internal host or metadata IP]/[REDACTED]
# effect -> gateway fetches it with its own network identity [payload]
# Defense: upgrade to 1.35.0+, re-audit stored upstreams (private, loopback,
# link-local), restrict egress and treat "register server" as privileged.
Why it matters
SSRF is an old web bug, but MCP infrastructure gives it a new shape. Registries and gateways are being deployed as the single choke point between agents and tools, often with broad network reach and an attached cloud role. “Permission to register a server” tends to be handed out generously, because adding tools is the point of the platform. That makes the precondition (an authenticated account with register or edit rights) less of a barrier than it sounds, especially in shared or self-service deployments.
The pattern also generalizes. Any agent platform that stores a URL supplied by one user and later fetches it with its own network identity has the same risk surface: tool registries, webhook configurations, OpenAPI importers, remote MCP connectors. We saw related issues in SSRF and protocol pivoting through MCP delegation and in metadata exposure through default agent roles.
Defenses
- Upgrade to 1.35.0 or later, including any fork or derived code, as AWS recommends. Helm users with the bundled Keycloak should read the release notes first: the upgrade includes a breaking change for the
keycloak-client-secretSecret. - Audit stored upstream addresses after upgrading. List every registered server and correct or remove any upstream that points to a private range, link-local address, loopback, internal hostname or an unexpected domain.
- Review logs for the period the affected version ran, looking for unexpected registrations or upstream changes.
- Rotate the cloud role attached to the registry if unexpected activity cannot be ruled out, and review that role’s recent API activity.
- Restrict egress from the registry and auth-server components to the destinations they actually need. An outbound allowlist turns most SSRF bugs into failed connections.
- Harden metadata access. On EC2, require IMDSv2 and keep each component’s role to the minimum permissions it needs.
- Narrow who can register servers. Treat “register or edit an MCP server” as a privileged action, with review for new upstreams.
For teams building their own gateways, validate destinations at connection time, not only at registration, so that DNS changes cannot bypass the check:
# Defensive sketch: refuse upstreams that resolve to non-public addresses
import ipaddress, socket
from urllib.parse import urlparse
def upstream_is_allowed(url: str) -> bool:
parsed = urlparse(url)
if parsed.scheme not in ("https",) or not parsed.hostname:
return False
for info in socket.getaddrinfo(parsed.hostname, parsed.port or 443):
ip = ipaddress.ip_address(info[4][0])
if ip.is_private or ip.is_loopback or ip.is_link_local or ip.is_reserved:
return False
return True
# Pin the connection to the IP you checked, and never return raw
# upstream error bodies to the caller.
Status
| Item | Detail |
|---|---|
| Product | mcp-gateway-registry (open source, agentic-community) |
| Flaw | Server-side request forgery in the server registration and update API (CWE-918) |
| Severity | CVSS 3.1 8.5 (High), AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N |
| Affected | 1.0.3 through 1.34.0 |
| Fixed | 1.35.0 (GitHub release dated 2026-10-29) |
| Disclosure | AWS bulletin 2026-180-AWS and GHSA-fc39-fwh3-wv5r, 2026-11-11 |
| Credit | novice-22 (coordinated disclosure) |
| Known exploitation | None reported |
| Reference | Official CVE record (see sources) |
Sources
- → https://aws.amazon.com/security/security-bulletins/2026-180-aws/
- → https://github.com/agentic-community/mcp-gateway-registry/security/advisories/GHSA-fc39-fwh3-wv5r
- → https://github.com/agentic-community/mcp-gateway-registry/releases/tag/1.35.0
- → https://www.cve.org/CVERecord?id=CVE-2026-125926
- → https://gbhackers.com/aws-warns-of-mcp-gateway-registry-vulnerability/