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
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.
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. …
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.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| rmcp | crates.io | >= 2.0.0, <= 3.6.0 | 3.7.0 |
- CriticalMLflow: Unauthenticated full-read SSRF in webhook delivery: _validate_webhook_url bypassed via unvalidated HTTP redirects (and DNS rebindingmlflowExploited
- Critical@zereight/mcp-gitlab Vulnerable to Server-Side Request Forgery@zereight/mcp-gitlab
- CriticalCodeWhale: SSRF bypass - TOCTOU on DNS failure for DNS pinningcodewhale
- Criticalunstructured: Server-Side Request Forgery in the URL-based partitioningunstructured
- CriticalSSRF + LLM API key exfiltration via user-controlled basepath / baseUrl in 8 chat-model nodesflowise, flowise-components
- CriticalLocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLsgithub.com/mudler/LocalAI
- HighUnauthenticated unbounded tool_schemas cache growth in rmcp Streamable HTTP server transport leads to remote denial-of-servicermcp
- HighRMCP: Missing Resource Field Validation in OAuth Protected Resource Metadata Discoveryrmcp
- HighRMCP: Unauthenticated permanent session-table leak in rmcp Streamable HTTP server transport leads to remote denial-of-servicermcp
- Highrmcp Streamable HTTP server transport has a DNS rebinding vulnerabilityrmcp
- MediumUnbounded response-body buffering in rmcp Streamable HTTP clients allows memory exhaustionrmcp
- Mediumrmcp OAuth client fetches server-controlled resource_metadata URLsrmcp
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.