mcp-cve-project

GHSA-c9xm-49cp-xcr9 | rmcp OAuth client fetches server-controlled resource_metadata URLs | Medium |

Advisory Information

Field Value
GHSA ID GHSA-c9xm-49cp-xcr9
CVE ID No CVE assigned
Date (index) 2026-10-02
Affected product rmcp: rmcp OAuth client fetches server-controlled resource_metadata URLs
OWASP MCP Top 10 (2025) MCP05 — Command Injection & Execution
Published / disclosed 2026-06-29
Ecosystem crates.io
Component rmcp
CVSS score High
CWE CWE-918
Affected versions rmcp <= 1.8.0
Fixed versions 2.0.0
Fix status Patched
Notes Updated on 2026-11-09 from the GitHub repository advisory.

Advisory Breakdown

rmcp OAuth client fetches server-controlled resource_metadata URLs

Summary The rmcp OAuth client accepts a server-controlled resource_metadata= URL from the WWW-Authenticate header and fetches it without same-origin or private-network validation. An attacker-controlled MCP server can return a 401 WWW-Authenticate: Bearer resource_metadata="..." header pointing at an internal URL, including localhost, RFC 1918 addresses, or cloud metadata endpoints. The client then performs an outbound GET to that URL from the victim application’s network context. ## Affected version - Repository: modelcontextprotocol/rust-sdk - Crate: rmcp - Current main reviewed: c330fede90e4729c234f8e87fdbc5ea27a1dd10c - Commit date: 2026-05-19 - Affected file: crates/rmcp/src/transport/auth.rs - File blob: 3aa3e91310662c409af9dc38c9d584d6df217e9c - Severity framing: High/Medium SSRF, depending on the embedding application’s network position and whether response parsing gives the attacker useful success/failure or chained fetch behavior. ## Source evidence extract_www_authenticate_params() accepts an absolute URL from the server-controlled header: ```rust let resource_key = “resource_metadata=”; while let Some(pos) = header_lowercase[search_offset..].find(resource_key) { let global_pos = search_offset + pos + resource_key.len(); let value_slice = &header[global_pos..]; if let Some((value, consumed)) = Self::parse_next_header_value(value_slice) { if l

Fix / Remediation

Upgrade to the patched version listed above. Where the advisory says a setting is still required after the upgrade, apply that setting as well. Keep HTTP MCP listeners authenticated and off untrusted networks until the upgrade is in place.

Detection / verification