Pydantic-AI MCP Run Python Deno SSRF Vulnerability
Vulnerability
A vulnerability exists in the Pydantic-AI MCP Run Python tool due to an overly permissive Deno sandbox configuration. This flaw allows the Python code to access the localhost interface, enabling Server-Side Request Forgery (SSRF) attacks. The 'mcp-run-python' project is archived and unlikely to be fixed.
Impact
The vulnerability allows for SSRF attacks, where an attacker can make requests to the localhost interface of the host running the Deno sandbox.
Reproduction
To reproduce this vulnerability, configure an MCP client to use the Pydantic-AI MCP Run Python tool. Start a HTTP server on the localhost interface. Then, use the MCP client to run a code snippet that fetches a resource from the localhost server. The request will be received by the server, demonstrating the SSRF vulnerability.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
