mcp is vulnerable to Server-Side Request Forgery (SSRF)
45
Medium Risk
The MCP client HTTP transports and OAuthClientProvider build their httpx client with follow_redirects always enabled, so streamable_http_client, sse_client, and the OAuth provider follow HTTP redirects to any scheme, host, or port. A redirect returned by a connected MCP server steers the client to an unrelated origin, and because the OAuth authentication flow re-applies the bearer token on the redirected request, that token is sent to the redirect target and the client can be pointed at internal or otherwise unintended hosts. The fix follows a redirect only when it stays within the MCP endpoint's origin (same scheme, host, and port, allowing an http-to-https upgrade on the same host) and fails the request otherwise.
You are affected if you are using a version that falls within the vulnerable range and your client connects to remote MCP servers over the Streamable HTTP or SSE transport.
mcp is vulnerable to Server-Side Request Forgery (SSRF) in versions 2.0.0 - 2.1.1 and 1.8.0 - 1.29.1.
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
ISO 42001Compliant© All Intel data is openly available and commercially licensed.