mcp is vulnerable to Information Exposure Through an Error Message
53
Medium Risk
The MCP server places raw internal exception messages into the data field of JSON-RPC error responses returned to clients. Because these messages are sent to untrusted callers, internal implementation details such as backtraces, class names, file paths, and other state can be disclosed when a request triggers an exception. Any client able to reach the server and cause an error can read this information without authentication. The fix sanitizes exception details before they are placed into JSON-RPC error responses.
You are affected if you run an MCP server built on a vulnerable version and it returns JSON-RPC errors to untrusted or externally reachable callers. Any request that triggers a handled exception on the server returns the raw exception message in the JSON-RPC error data field, disclosing internal details (messages, class names, paths) to the caller without authentication.
mcp is vulnerable to Information Exposure Through an Error Message in versions 0.1.0 - 1.1.0.
Upgrade the mcp 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