CVE-2026-25905: mcp-run-python · Improper Isolation or Compartmentalization
Affects mcp-run-pythonSource CVE Database V5
Not known to be exploited · CVSS 5.8 Medium.
Data as of 26 Oct 2026, 09:08 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 10% 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 26 Oct 2026.
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
Given that 'mcp-run-python' is archived and unlikely to receive patches, European organizations should prioritize migrating away from this project to actively maintained alternatives that enforce strict isolation between Python and JavaScript environments. Where migration is not immediately feasible, organizations should implement strict sandboxing to isolate Python execution contexts, preventing Python code from accessing or modifying the JS environment or underlying system resources. Employing WebAssembly security best practices, such as limiting Pyodide API exposure and using content security policies (CSP) to restrict script execution, can reduce attack surface. Additionally, organizations should implement robust input validation and user interaction controls to prevent injection of malicious Python code. Monitoring and logging Python and JS interactions can help detect anomalous behavior indicative of exploitation attempts. Regular security assessments and code reviews focusing on integration points between Python and JavaScript are recommended. Finally, educating developers and users about the risks of executing untrusted Python code in these environments is essential to reduce user interaction-based exploitation.
Description
CVE-2026-25905 is a medium severity vulnerability affecting the 'mcp-run-python' project, where Python code executed via 'runPython' or 'runPythonAsync' is not properly isolated from JavaScript code. This improper compartmentalization (CWE-653) allows Python code to manipulate the JavaScript environment through Pyodide APIs, potentially enabling an attacker to hijack the MCP server and perform malicious activities such as tool shadowing. The vulnerability has a CVSS score of 5.8, indicating moderate risk, with network attack vector, high attack complexity, no privileges required, and user interaction needed. The project is archived and unlikely to receive patches, increasing the risk for users still relying on it. There are no known exploits in the wild as of now. European organizations using this tool or similar environments integrating Python and JavaScript without proper isolation are at risk, especially those in critical infrastructure or software development sectors. Mitigation requires isolating Python execution environments, restricting Pyodide API access, or migrating away from the unmaintained project. Countries with strong software development ecosystems and critical infrastructure relying on such tools, including Germany, France, the UK, and the Netherlands, are more likely to be affected.