UTC
Medium

OAuth authorization-server metadata SSRF filter checks host strings, not resolved addresses (incomplete fix of GHSA-c9xm-49cp-xcr9)

GHSA-5p52-q7pq-9fq2 · published 2026-10-22

Severity
Medium
CVSS score
Not scored
Chance of exploitation (EPSS)
No CVE
Fixed in
3.7.0
What it is

Client-side SSRF. Discovery sends GET requests, and the token and registration endpoints send POST requests, to an internal address chosen by a malicious MCP server or authorization server. The response is not returned to the attacker directly. Cloud metadata endpoints that require headers or IMDSv2 are largely unaffected; unauthenticated internal HTTP services are reachable.

What to do

Upgrade rmcp to 3.7.0 or later.

Fixed in rmcp 3.7.0. AuthorizationManager::new now builds its HTTP client with a DNS resolver that applies the address policy to every resolved address, including the base URL's own host, and checks every IP-literal request URL and followed redirect against the same policy: Public addresses are always allowed. Loopback and private addresses are allowed only when the base URL itself names one of that class: localhost, or a loopback or private IP literal. The base host's DNS answers never widen the policy. Link-local (including cloud instance metadata), unspecified, broadcast, multicast and reserved addresses are always rejected, including when embedded in IPv6 forms such as NAT64 or 6to4. …

If you cannot upgrade yet

Pass an OAuthHttpClient that enforces your own outbound address policy to AuthorizationManager::new_with_oauth_http_client. The SDK checks only the host strings of discovered URLs for clients supplied through with_client or new_with_oauth_http_client, before and after the patch; the resolved-address checks apply only to the client built by AuthorizationManager::new.

Affected
PackageRegistryAffectedFixed in
rmcpcrates.io>= 2.0.0, <= 3.6.03.7.0

The impact, patch and workaround text comes from the advisory, shortened (published by the MCP Rust SDK project). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.

Sources: GitHub Advisory Database, reviewed and malware advisories (CC BY 4.0, https://github.com/advisories); advisories published by Cursor (https://github.com/cursor/cursor/security/advisories); advisories published by OpenClaw (https://github.com/openclaw/openclaw/security/advisories); advisories published by vLLM (https://github.com/vllm-project/vllm/security/advisories); advisories published by Open WebUI (https://github.com/open-webui/open-webui/security/advisories); advisories published by n8n (https://github.com/n8n-io/n8n/security/advisories); advisories published by Flowise (https://github.com/FlowiseAI/Flowise/security/advisories); advisories published by Langflow (https://github.com/langflow-ai/langflow/security/advisories); advisories published by the MCP Python SDK project (https://github.com/modelcontextprotocol/python-sdk/security/advisories); advisories published by the MCP reference servers project (https://github.com/modelcontextprotocol/servers/security/advisories); advisories published by the MCP Inspector project (https://github.com/modelcontextprotocol/inspector/security/advisories); advisories published by the MCP TypeScript SDK project (https://github.com/modelcontextprotocol/typescript-sdk/security/advisories); advisories published by the MCP Go SDK project (https://github.com/modelcontextprotocol/go-sdk/security/advisories); advisories published by the MCP Java SDK project (https://github.com/modelcontextprotocol/java-sdk/security/advisories); advisories published by the MCP Kotlin SDK project (https://github.com/modelcontextprotocol/kotlin-sdk/security/advisories); advisories published by the MCP Rust SDK project (https://github.com/modelcontextprotocol/rust-sdk/security/advisories); advisories published by the MCP Ruby SDK project (https://github.com/modelcontextprotocol/ruby-sdk/security/advisories); advisories published by the MCP C# SDK project (https://github.com/modelcontextprotocol/csharp-sdk/security/advisories); advisories published by the MCP PHP SDK project (https://github.com/modelcontextprotocol/php-sdk/security/advisories); advisories published by the MCP Registry project (https://github.com/modelcontextprotocol/registry/security/advisories); advisories published by Open Terminal (https://github.com/open-webui/open-terminal/security/advisories); advisories published by MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-12-06. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].