CVE-2026-63127
RMCP is an official Rust SDK for the Model Context Protocol. Prior …
RMCP is an official Rust SDK for the Model Context Protocol. Prior to 2.0.0, the rmcp crate's OAuth implementation in crates/rmcp/src/transport/auth.rs omits the RFC 9728 resource field from ResourceServerMetadata and allows discover_oauth_server_via_resource_metadata to use protected-resource metadata without confirming that the returned resource identifier exactly matches the configured MCP server. A malicious MCP server can publish metadata for a different legitimate MCP resource and its authorization server, causing a victim who connects and completes the authorization flow to obtain a legitimate access token that the client subsequently sends to the malicious server. The attacker can capture the token and impersonate the victim against the legitimate MCP resource within the token's granted scopes. This issue is fixed in version 2.0.0.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/modelcontextprotocol/rust-sdk/commit/c1a8b29ff2cc45e7820b900dae42cbb4958089ec
- github.com/modelcontextprotocol/rust-sdk/pull/937
- github.com/modelcontextprotocol/rust-sdk/releases/tag/rmcp-v2.0.0
- github.com/modelcontextprotocol/rust-sdk/security/advisories/GHSA-33f5-2c5q-wgwj
- nvd.nist.gov/vuln/detail/CVE-2026-63127
- github.com/advisories/GHSA-33f5-2c5q-wgwj
- nvd.nist.gov/vuln/detail/CVE-2026-63127
- cve.org/CVERecord?id=CVE-2026-63127
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.