Red Hat VEX
RHVEX-CVE-2026-63127
rmcp: RMCP: Token impersonation via missing OAuth resource field validation
Details
A flaw was found in rmcp, a Rust SDK for the Model Context Protocol. The OAuth implementation in rmcp omits the RFC 9728 resource field from ResourceServerMetadata. This allows a malicious Model Context Protocol (MCP) server to publish metadata for a different legitimate MCP resource. Consequently, a victim connecting to the malicious server may obtain a legitimate access token, which the client then sends to the malicious server. This enables the attacker to capture the token and impersonate the victim against the legitimate MCP resource within the token's granted scopes, leading to unauthorized access and information disclosure.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:10 | goose | All versions, no fix yet |
| Red Hat:enterprise_linux:9 | goose | All versions, no fix yet |
References
- https://access.redhat.com/security/cve/CVE-2026-63127
- https://bugzilla.redhat.com/show_bug.cgi?id=2535503
- https://www.cve.org/CVERecord?id=CVE-2026-63127
- https://nvd.nist.gov/vuln/detail/CVE-2026-63127
- https://github.com/modelcontextprotocol/rust-sdk/commit/c1a8b29ff2cc45e7820b900dae42cbb4958089ec
- https://github.com/modelcontextprotocol/rust-sdk/pull/937
- https://github.com/modelcontextprotocol/rust-sdk/releases/tag/rmcp-v2.0.0
- https://github.com/modelcontextprotocol/rust-sdk/security/advisories/GHSA-33f5-2c5q-wgwj