CVE-2026-25904
MCP Run Python Deno Sandbox Misconfiguration Allows SSRF Attacks via Localhost Access
描述
### Impact **Server-Side Request Forgery (SSRF):** A security vulnerability exists in the `mcp-run-python` tool (specifically within the Pydantic-AI integration) due to an overly permissive Deno sandbox configuration. The tool configures the Deno runtime—which is intended to isolate the execution of untrusted Python code—with network permissions that include access to the host's loopback interface (`localhost`). Consequently, malicious Python code executed through the tool can bypass network isolation and send HTTP requests to internal services running on the host machine. This allows attackers to interact with local APIs, databases, or cloud metadata services that should not be accessible from the sandbox. ### Patches **No Patch Available:** The `mcp-run-python` project is currently **archived** and maintainers have indicated it is unlikely to receive a fix. **Recommendation:** Users are strongly advised to **immediately stop using** this package. If functionality is required, users must migrate to an alternative execution environment that enforces strict network isolation (e.g., blocking all outbound traffic or explicitly denying access to `127.0.0.1`/`::1`). ### Workarounds There are no configuration-based workarounds provided by the package itself. Remediation requires modifying the source code to restrict the Deno permissions (specifically removing or narrowing the `--allow-net` flag) or moving the execution to a container with no network access. ### Resources * [CVE-2026-25904](https://nvd.nist.gov/vuln/detail/CVE-2026-25904) * [JFrog Security Analysis: Deno SSRF](https://research.jfrog.com/vulnerabilities/mcp-run-python-deno-ssrf-jfsa-2026-001653029)
如何修補 CVE-2026-25904
目前尚未發布修補版本。可考慮移除受影響套件,或參考下方連結中的上游建議。
- —未列出修補版本
CVE-2026-25904 正在被利用嗎?
低 — EPSS 為 0.0%,目前沒有觀察到大規模利用活動。
受影響套件(1)
- from 0, <= 0.0.22