fastmcp is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor
70
High Risk
Affected versions of this package leak the MCP transport's Authorization header to downstream third-party APIs when using FastMCP.from_openapi() over Streamable HTTP. The get_http_headers() function does not exclude the authorization header, and request.headers.update() overwrites the API key configured on the httpx client with the MCP client's credentials. The patch adds authorization to the excluded headers set and changes MCP header forwarding to a non-overwriting pattern.
You are affected if you are using a version that falls within the vulnerable range.
fastmcp is vulnerable to Exposure of Sensitive Information to an Unauthorized Actor in versions 0.0.1 - 3.0.1.
Upgrade the fastmcp 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.

SOC 2Compliant
ISO 27001Compliant