rmcp OAuth client fetches server-controlled resource_metadata URLs
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.
AI Analysis
Technical Summary
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.
rmcp OAuth client fetches server-controlled resource_metadata URLs
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
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.