CVE-2026-25904: mcp-run-python · Server-Side Request Forgery (SSRF)
Affects mcp-run-pythonSource CVE Database V5
Not known to be exploited · CVSS 5.8 Medium.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 8% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 9 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
PyPImcp-run-pythonpkg:pypi/mcp-run-pythonOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
1. Discontinue use of the Pydantic-AI MCP Run Python tool immediately, especially in production or sensitive environments, since it is archived and will not receive patches. 2. If continued use is necessary, isolate the sandbox environment using strict network segmentation and firewall rules to prevent access to localhost or internal network interfaces. 3. Employ network-level controls such as egress filtering to block unauthorized outbound requests from sandboxed processes. 4. Review and harden sandbox configurations to enforce the principle of least privilege, explicitly denying network access unless absolutely required. 5. Use alternative, actively maintained sandboxing tools with robust security controls and regular updates. 6. Implement monitoring and alerting for unusual network requests originating from sandboxed environments to detect potential SSRF attempts. 7. Educate developers and users about the risks of executing untrusted code and require code review or validation before execution. 8. Conduct regular security assessments of sandbox configurations and network access controls to identify and remediate similar misconfigurations.
Description
CVE-2026-25904 is a Server-Side Request Forgery (SSRF) vulnerability in the Pydantic-AI MCP Run Python tool, which uses an overly permissive Deno sandbox configuration. This misconfiguration allows Python code executed within the sandbox to access the localhost interface of the host system, potentially enabling SSRF attacks. The project is archived and unlikely to receive a fix, increasing risk for users who continue to rely on it. The vulnerability has a CVSS score of 5.8 (medium severity), reflecting moderate impact and exploitation complexity. Exploitation requires user interaction but no privileges or authentication. While no known exploits are currently in the wild, the vulnerability could allow attackers to access internal services, leading to information disclosure and limited integrity and availability impacts. European organizations using this tool or similar configurations should be cautious, especially those in countries with strong adoption of Python and Deno-based development environments. Mitigation involves discontinuing use of the vulnerable tool, isolating sandbox environments, and restricting network access from sandboxed code. Countries with significant tech sectors and software development communities, such as Germany, France, the UK, and the Netherlands, are most likely to be affected.