UTC
Medium

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
What it is

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.

What to do

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.

Affected
PackageRegistryAffectedFixed in
rmcpcrates.io< 2.0.02.0.0

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.

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 MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-11-22. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].