Skip to main content

rmcp OAuth client fetches server-controlled resource_metadata URLs

0
Medium
Published: 10/02/2026 (10/02/2026, 16:12:31 UTC)
Source: GCVE Database
Product: rmcp

Description

The rmcp OAuth client in the modelcontextprotocol rust-sdk accepts a server-controlled resource_metadata URL from the WWW-Authenticate header and fetches it without validating origin or blocking internal network addresses. This allows an attacker-controlled or compromised MCP server to induce the client to make HTTP requests to internal or cloud metadata endpoints, potentially exposing sensitive internal resources. The vulnerability is classified as SSRF with medium severity, depending on the network context of the embedding application. A patch is available to enforce same-origin checks and block private network addresses.

CVSS v4.0

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
Low
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Affected software

crates.ioghsa
rmcp
Affected versions
<2.0.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/02/2026, 17:50:07 UTC

Technical Analysis

The rmcp OAuth client parses the resource_metadata URL from the WWW-Authenticate header without validating that the URL is same-origin or blocking loopback, link-local, RFC 1918, or cloud metadata addresses. It then performs an HTTP GET request to that URL from the victim application's network context. This behavior enables server-side request forgery (SSRF) attacks where an attacker-controlled MCP server can cause the client to access internal services or cloud metadata endpoints. The vulnerability affects versions of the rmcp crate prior to 2.0.0. The recommended fix is to enforce same-origin validation and block private network and cloud metadata addresses before fetching the resource_metadata URL.

Potential Impact

This vulnerability allows an attacker who controls or compromises the MCP server to induce the victim client to make HTTP requests to internal network resources, including localhost, private IP ranges, and cloud metadata endpoints. This can lead to unauthorized information disclosure or further chained metadata fetches if the internal endpoints return expected JSON structures. The impact depends on the network position of the client and the sensitivity of the internal services accessible via SSRF.

Mitigation Recommendations

A patch is available to address this vulnerability. The fix involves validating that the resource_metadata URL is same-origin with the MCP server URL and rejecting URLs that point to loopback, link-local, RFC 1918, unique-local IPv6, or known cloud metadata hostnames. Non-HTTP(S) schemes should also be rejected. These validations should apply to redirect targets and any subsequent metadata URLs. Users should update to a patched version of the rmcp crate to mitigate this SSRF risk.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-c9xm-49cp-xcr9
Osv Schema Version
1.4.0
Ecosystems
["crates.io"]
Database Specific Severity
MODERATE
Cvss Version
4.0

Threat ID: 6abfee71a43b0b3b89e542f7

Added to database: 10/02/2026, 17:48:33 UTC

Last enriched: 10/02/2026, 17:50:07 UTC

Last updated: 10/02/2026, 21:37:27 UTC

Views: 5

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses