CVE-2026-25905
Code Injection in mcp-run-python Allows MCP Server Hijacking
Publication date: 2026-02-09
Last updated on: 2026-02-09
Assigner: JFrog
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| jfrog | mcp-run-python | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-653 | The product does not properly compartmentalize or isolate functionality, processes, or resources that require different privilege levels, rights, or permissions. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability occurs because the Python code executed by the functions 'runPython' or 'runPythonAsync' is not isolated from the JavaScript environment. As a result, any Python code can access and use the Pyodide APIs to modify the JavaScript environment.
This lack of isolation allows an attacker to potentially hijack the MCP server, which could be used for malicious purposes such as MCP tool shadowing.
It is important to note that the affected project, 'mcp-run-python', is archived and unlikely to receive a fix.
How can this vulnerability impact me? :
The vulnerability can allow an attacker to hijack the MCP server by exploiting the ability to run Python code that modifies the JavaScript environment.
Such hijacking can lead to malicious activities including MCP tool shadowing, which may compromise the integrity and security of the server and its operations.
How does this vulnerability affect compliance with common standards and regulations (like GDPR, HIPAA)?:
I don't know
How can this vulnerability be detected on my network or system? Can you suggest some commands?
I don't know
What immediate steps should I take to mitigate this vulnerability?
I don't know