rmcp is vulnerable to Improper Authorization
59
Medium Risk
The rmcp protocol handling accepts restricted server-to-client requests (such as sampling/createMessage, roots/list, and elicitation/create) without confirming they are associated with the originating request context or inbound stream. A malicious or compromised MCP server can issue restricted requests that the client processes as if they were legitimately associated, enabling confused-deputy invocation of client-side capabilities. Before the fix these unassociated requests were dispatched to the client handler instead of rejected. The fix (SEP-2260) enforces receive-side request association and rejects unassociated restricted requests with an invalid-params (-32602) error.
You are affected if you are on a version within the vulnerable range, your application uses the rmcp client to connect to untrusted or externally controlled MCP servers, and you have implemented the client-side handlers for restricted server-to-client requests (sampling/createMessage, roots/list, or elicitation/create). Clients that leave these handlers at their safe defaults (which decline or return method-not-found) have limited exposure.
rmcp is vulnerable to Improper Authorization in versions 0.1.0 - 3.0.1.
Upgrade the rmcp library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant