Lack of isolation in mcp-run-python leads to MCP server takeover
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- No fix listed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | mcp-run-python | all versions | — | No fix listed | CNA |
| — | mcp-run-python (PyPI) | up to 0.0.22 | — | No fix listed | GHSA-pfv4-wmph-5gc6 |
- mcp-run-python Vendor— Affected all versions Fixed in — No fix listed CNA
- mcp-run-python (PyPI) Vendor— Affected up to 0.0.22 Fixed in — No fix listed GHSA-pfv4-wmph-5gc6
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2026-25905
- 2026-10-03 Alias added: GHSA-pfv4-wmph-5gc6
References
Advisory 2
Sources
- CVE-2026-25905 · CVE Program
- CVE-2026-25905 · NVD
- FIRST EPSS
- GHSA-pfv4-wmph-5gc6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences