mcp is vulnerable to Server-Side Request Forgery (SSRF)
47
Medium Risk
The OAuth client validates a server-controlled resource_metadata URL taken from the WWW-Authenticate header using a check that only enforces the HTTPS scheme. Because the check does not restrict private, loopback, link-local, or cloud-metadata destinations and reads only the dotted-decimal form of an address, a malicious or compromised MCP server can point discovery at internal HTTPS services or the cloud metadata endpoint. The client issues the request automatically during OAuth discovery from its own network position, before any user approval, resulting in blind server-side request forgery. The fix restricts discovery destinations to same-origin, routable hosts and rejects private and metadata addresses including alternate numeric spellings.
You are affected if you are using a version that falls within the vulnerable range and your application uses the OAuth client to connect to an untrusted MCP server whose responses can direct discovery to internal HTTPS endpoints.
mcp is vulnerable to Server-Side Request Forgery (SSRF) in versions 0.17.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