# CVE-2026-25905: Lack of isolation in mcp-run-python leads to MCP server takeover

- Severity: Medium 5.8 (CVSS:3.1, scored by JFROG) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-01)
- Published: 2026-02-09T09:01:16.728Z
- Modified: 2026-07-13T16:43:32.124Z
- Also known as: GHSA-pfv4-wmph-5gc6, PYSEC-2026-2628
- Weaknesses: CWE-653
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: JFROG

## Description

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.

(As written by CVE List.)

## Affected

- mcp-run-python: 0
- mcp-run-python (PyPI): up to 0.0.22

## Every score

- JFROG: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L`
- PyPA Advisory Database: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L`

## References

- <https://research.jfrog.com/vulnerabilities/mcp-run-python-lack-of-isolation-mcp-takeover-jfsa-2026-001653030/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25905> (advisory)
- <https://github.com/pydantic/mcp-run-python> (package)
- <https://research.jfrog.com/vulnerabilities/mcp-run-python-lack-of-isolation-mcp-takeover-jfsa-2026-001653030> (web)
- <https://pypi.org/project/mcp-run-python> (package)
- <https://github.com/advisories/GHSA-pfv4-wmph-5gc6> (advisory)

## Sources

- CVE List: [CVE-2026-25905](https://www.cve.org/CVERecord?id=CVE-2026-25905), CVE Terms of Use, modified 2026-02-09
- GitHub Advisory Database: [GHSA-pfv4-wmph-5gc6](https://github.com/advisories/GHSA-pfv4-wmph-5gc6), CC-BY-4.0, modified 2026-07-13
- NVD: [CVE-2026-25905](https://nvd.nist.gov/vuln/detail/CVE-2026-25905), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2628](https://osv.dev/vulnerability/PYSEC-2026-2628), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-25905 · Whole record: https://cve.day/CVE-2026-25905.json · Rebuilt by cve.day 2026-11-25T22:59:13.650Z
