Summary
A server-side request forgery (SSRF) vulnerability in Amazon mcp-gateway-registry may let an authenticated remote user make the gateway send crafted requests to internal network services or cloud instance metadata endpoints. If the gateway can reach those destinations and returns their responses, the user may read information that should not be externally accessible.
Affected context
The issue is in the server registration and update API of Amazon mcp-gateway-registry before version 1.35.0. Risk depends on whether an authenticated user can submit request data that influences outbound destinations, whether the gateway can reach internal services or metadata endpoints, and whether responses are exposed to the caller.
Exploit preconditions
- Attack surface: The server registration or update API is reachable by the user.
- Required access: An authenticated remote account with access to the relevant API operation.
- Trigger point: Submission of crafted request data that causes the gateway to make an outbound request.
- Why exploitation is possible: If destination controls are insufficient and the gateway relays responses, requests may reach internal services and their responses may be returned to the caller.
Why this happens
CWE-918 describes server-side request forgery: an application accepts input that influences a server-side request without adequately constraining its destination. In this case, the registration and update API can be induced to make outbound requests, creating risk when internal destinations are reachable and responses are exposed.
Potential impact
- An attacker may read responses from internal network services.
- Cloud instance metadata may be exposed if the gateway can reach metadata endpoints.
- Internal services could receive requests that bypass some network boundary controls.
- Information obtained through the gateway could support further unauthorized access.
General mitigation guidance
Reduce the influence of user-controlled data on outbound request destinations. Prefer secure-by-default destination allowlists and reject loopback, link-local, private, or otherwise disallowed address ranges where appropriate. Validate destinations after resolving names and account for redirects and DNS changes. Avoid returning raw upstream responses to callers, and apply least-privilege network egress controls so the gateway can reach only required services.
How teams detect issues like this
Review outbound request code paths for destinations derived from API input, including registration and update workflows. Static analysis and code review can look for request clients that accept user-controlled URLs or hosts without strict validation. Monitor gateway egress for unexpected connections to internal or metadata address ranges, and enforce network policies that restrict unnecessary outbound traffic. Automated security review tools may help identify risky request flows.

