rmcp OAuth client fetches server-controlled resource_metadata URLs
GHSA-c9xm-49cp-xcr9 · published 2026-10-02
- Severity
- Medium
- CVSS score
- 6.3
- Chance of exploitation (EPSS)
- No CVE
- Fixed in
- 2.0.0
The direct impact is SSRF from any application embedding the rmcp OAuth client. Depending on where the client runs, this can reach: cloud metadata endpoints; localhost-only services; private VPC or container-network services; internal HTTP APIs not reachable from the attacker. The attacker controls the URL through the MCP server response. The victim only needs to connect to the attacker's MCP server or a compromised server that can emit the crafted WWW-Authenticate header.
Upgrade rmcp to 2.0.0 or later.
Before accepting or fetching a resourcemetadata URL: require the URL to be same-origin with the original MCP server URL, unless the spec intentionally permits a narrow trusted exception; reject loopback, link-local, RFC 1918, unique-local IPv6, and known cloud metadata hostnames; reject non-HTTP(S) schemes; apply the same validation to redirect targets and any follow-on metadata URLs. A minimal same-origin check would compare scheme, host, and effective port: If cross-origin resourcemetadata is required for compatibility, it should be explicitly opted into and protected by private-network blocking.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| rmcp | crates.io | < 2.0.0 | 2.0.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
- 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
- CriticalFastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerabilityfastmcp
- CriticalBentoML SSRF Vulnerability in File Upload Processingbentoml
- 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
- MediumRMCP: Custom HTTP headers leak to cross-origin redirect targetsrmcp
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.