Patching an MCP gateway does not clean up what was already written
On 11 November 2026, AWS published bulletins for an SSRF and an authorization flaw in MCP Gateway Registry. Each bulletin says the upgrade leaves data written before it in place, and that changes how teams should patch agent infrastructure.
Contents3 sections
On 11 November 2026, AWS published two security bulletins for MCP Gateway Registry, the open source registry and gateway it describes as a tool that centralizes discovery, access control and proxying of registered MCP tool assets. The first, 2026-180-AWS, covers CVE-2026-125926, a server side request forgery in the server registration and update API. The second, 2026-179-AWS, covers CVE-2026-100307, a missing authorization check on the external management API. Both bulletins thank an external researcher with the handle novice-22 for collaborating on the issue through coordinated disclosure.
The bugs themselves are familiar. The part we think every team running an MCP gateway should read twice is the section titled post upgrade actions. In both bulletins, AWS says plainly that installing the fixed version does not undo what an attacker may already have written. The patch fixes the code path. It does not fix your data.
What the two bulletins say
For the SSRF, the GitHub advisory states that the registry did not validate the upstream address of a registered server. An authenticated user allowed to register or modify a server could point that address at a service on the internal network of the deployment, and the gateway would send requests there. In some cases the gateway returned the responses to the user. Depending on network configuration, the advisory says the reachable services could include the instance metadata service of the cloud environment and the credentials it provides. The advisory rates it High, CVSS 8.5.
For the authorization flaw, the AWS bulletin says the /api/servers/* endpoints authenticated the caller but performed no role or permission check. A low privileged user could send a group import request to POST /api/servers/groups/import that mapped their own identity provider group to the registry administrator scope. Because admin status is derived per request, the escalation applied on the next request with no new login, and the bulletin says it granted administrative control over every registered gateway asset. AWS notes that an administrator can read the credentials the registry stores for registered servers, which are decrypted on read.
| Bulletin | Affected | Fixed in | What the upgrade leaves in place |
|---|---|---|---|
| 2026-180-AWS, CVE-2026-125926 (SSRF) | v1.0.3 to 1.34.0 | 1.35.0 | Server configurations stored before the upgrade, including any upstream address an attacker set |
| 2026-179-AWS, CVE-2026-100307 (missing authorization) | 1.0.9 to 1.24.7 | 1.25.0, released 27 June 2026 | Group mappings written before the upgrade, and any credentials already read |
Two details matter for anyone triaging. First, the fix for the authorization flaw shipped on 27 June 2026, months before the bulletin. A team that upgraded then may never have done the cleanup. Second, AWS points out that a deployment on 1.25.0 or later carries the authorization fix but stays exposed to the SSRF until it runs 1.35.0. The bulletins do not say whether either issue was exploited in the wild, and we will not guess.
Why this matters beyond one project
An MCP gateway is, by design, a component that holds credentials for many downstream systems and makes outbound requests on behalf of users. That is the exact shape of a confused deputy. It is easy to treat a gateway as plumbing. These bulletins show it is closer to a secrets vault with an HTTP client attached, and it deserves the review you would give one.
The stronger lesson is about state. The authorization fix, in the words of the bulletin, does not modify group definitions written before the upgrade. A privileged mapping created through the flaw keeps granting admin access afterwards. The SSRF fix validates addresses only when a server is registered or modified, and leaves stored configurations unchanged. So the usual routine of bumping the version, watching CI turn green and closing the ticket would leave a compromised registry compromised. Any system that persists authorization decisions or destinations has this property, including agent tool registries that teams build in house.
What we would do
If you run MCP Gateway Registry, follow both bulletins in full. If you built your own gateway or tool registry, these are the checks we would run on it now.
- Treat the stored data as suspect after any authorization fix. Write a query that lists every privileged grant and every upstream address, with who created it and when. If you cannot answer who created it, that is the first finding.
- Authorize writes separately from authentication. Every route that changes a mapping, a role or a destination needs an explicit permission check, tested with a low privileged account in CI. A test that only proves logged out users get a 401 proves nothing here.
- Validate destinations again at connect time. A check at registration time does not cover rows written before the check existed, and DNS answers can change after the check. Resolve the host, reject any address that is not public, then connect to the address you checked.
- Restrict egress at the network layer. AWS lists this as a workaround. We would make it the default. The gateway should only reach the destinations it needs, and on EC2 it should run with IMDSv2 required and a role scoped to its own job.
- Do not return raw upstream responses to the caller. The advisory notes that in some cases the gateway returned upstream responses to the user, which turns a blind SSRF into one an attacker can read.
Here is the shape of the connect time check we would put in front of any outbound call from a gateway. Treat it as a sketch to adapt to your own stack.
import ipaddress
import socket
from urllib.parse import urlparse
# Public vendor endpoints only. Internal MCP servers go through a separate, reviewed path.
ALLOWED_HOSTS = {"mcp.vendor-one.example", "tools.vendor-two.example"}
def resolve_checked_upstream(url: str) -> list[str]:
parsed = urlparse(url)
if parsed.scheme != "https":
raise ValueError("upstream must use https")
if parsed.hostname not in ALLOWED_HOSTS:
raise ValueError("upstream host is not on the allowlist")
addresses = []
for info in socket.getaddrinfo(parsed.hostname, parsed.port or 443):
ip = ipaddress.ip_address(info[4][0])
# is_global is False for private, loopback, link local, shared and reserved ranges.
if not ip.is_global:
raise ValueError(f"upstream resolves to blocked address {ip}")
addresses.append(str(ip))
# Connect to one of these addresses so the hostname is not resolved a second time.
return addresses
This does not replace an egress firewall. It is a second layer that also protects rows nobody revalidated. We have not tested version 1.35.0 and make no claim about its current behaviour beyond what the bulletin states.
Our position is simple. For agent infrastructure, a security fix is a code change plus a data migration, and a release note that omits the second half is incomplete. When we build MCP integrations and agents, the registry of tools, grants and destinations gets the same review as the database behind it. If you want a second pair of eyes on a gateway or tool registry you already run, that review fits inside a two week Discovery Sprint, and it is part of how we approach AI integration work.
Baraqix Engineering. Written by the engineers who did the work.
NOTE/12. First published .