Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| modelcontextprotocol | rust-sdk | < 2.0.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | goose | 1.45.0-1.el10_2 | RHSA-2026:80765 |
| RHEL 9 | goose | 1.45.0-1.el9_8 | RHSA-2026:80764 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | openai-codex | 0.155.1-1.1 | openSUSE-SU-2026:11849-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | rmcp | < 2.0.0 | 2.0.0 | GHSA-33f5-2c5q-wgwj |
Advisories 4
- WID-SEC-2026-3883 Red Hat Enterprise Linux (goose, environment-modules, tornado): Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2026
- RHSA-2026:80764 Red Hat Security Advisory: goose security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2026:80765 Red Hat Security Advisory: goose security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- openSUSE-SU-2026:11849-1 openai-codex-0.155.1-1.1 on GA media SUSE / openSUSE Security Updates · Sep 23, 2026
References
- https://github.com/modelcontextprotocol/rust-sdk/security/advisories/GHSA-33f5-2c5q-wgwj
- https://github.com/modelcontextprotocol/rust-sdk/pull/937
- https://github.com/modelcontextprotocol/rust-sdk/commit/c1a8b29ff2cc45e7820b900dae42cbb4958089ec
- https://github.com/modelcontextprotocol/rust-sdk/releases/tag/rmcp-v2.0.0