Intel

AIKIDO-2026-639016

mcp is vulnerable to Server-Side Request Forgery (SSRF)

Server-Side Request Forgery (SSRF) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

45

Medium Risk

This Affects:

PYTHONmcp
1.8.0 - 1.29.1
Fixed in 1.30.0
2.0.0 - 2.1.1
Fixed in 2.2.0
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

mcp is vulnerable to Server-Side Request Forgery (SSRF) in versions 2.0.0 - 2.1.1 and 1.8.0 - 1.29.1.

How to fix this

Upgrade the mcp library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform