Intel

AIKIDO-2026-778115

rmcp is vulnerable to Origin Validation Error

CVE-2026-63127Published Jul 1, 2026
July 1, 2026

82

CVE Score

High

Origin Validation Error

Are you affected? Scan for Free

TL;DR

The rmcp OAuth client discovers OAuth Protected Resource metadata (RFC 9728) in crates/rmcp/src/transport/auth.rs but does not validate the resource field against the MCP server it is connecting to. A malicious MCP server can return metadata whose resource points at a legitimate server, causing the client to start an OAuth flow with the legitimate authorization server and then send the resulting access token back to the attacker. This enables access token theft and full impersonation of the victim on the legitimate server. The fix adds the resource field to the metadata struct and rejects metadata whose resource does not match the configured server origin.

How do I fix this?

Upgrade the rmcp library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and your application uses the rmcp OAuth client to authenticate to MCP servers.

Package

Versions

0.8.2 - 1.8.0

Fixed in 2.0.0

Background info

rmcp is vulnerable to Origin Validation Error in versions 0.8.2 - 1.8.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea