CVE-2026-25905
MEDIUM 5.8CVSS 3.1MCP Run Python has a Sandbox Escape & Server Takeover Vulnerability
The Python code being run by 'runPython' or 'runPythonAsync' is not isolated from the rest of the JS code, allowing any Python code to use the Pyodide APIs to modify the JS environment. This may result in an attacker hijacking the MCP server - for malicious purposes including MCP tool shadowing. Note - the "mcp-run-python" project is archived and unlikely to receive a fix.
- Published
- 9 Feb 2026
- Last modified
- 13 Jul 2026
- Assigned by
- reefs@jfrog.com
- NVD status
- Deferred
- Weakness
- CWE-653
- Also known as
- GHSA-pfv4-wmph-5gc6PYSEC-2026-2628
- Sources
- NVDJSONOSV GHSA-pfv4-wmph-5gc6JSONOSV PYSEC-2026-2628JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | reefs@jfrog.com (Secondary) | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | mcp-run-python | <= 0.0.22 |
References
- https://research.jfrog.com/vulnerabilities/mcp-run-python-lack-of-isolation-mcp-takeover-jfsa-2026-001653030/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-25905 · ADVISORY
- https://github.com/pydantic/mcp-run-python · PACKAGE
- https://pypi.org/project/mcp-run-python · PACKAGE
- https://github.com/advisories/GHSA-pfv4-wmph-5gc6 · ADVISORY
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 9 Feb 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 9 Feb 2026)