CVE-2026-25905: mcp-run-python Critical Sandbox Escape & Server Takeover Vulnerability

mcp-run-python Updated 12 Feb 2026

Summary

09/02/2026
No i
Moderate
5.8

CVE-2026-25905: MCP Run Python has a Sandbox Escape & Server Takeover Vulnerability. Affects mcp-run-python versions < 0.0.22. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The mcp-run-python package allows users to execute Python code within a JavaScript environment using Pyodide. It is designed to facilitate the integration of Python scripts into JavaScript applications. However, due to its lack of proper isolation between the Python runtime and the host JavaScript environment, it is vulnerable to critical security issues.

Vulnerability Detail

A critical security vulnerability exists in mcp-run-python due to insufficient isolation between the Python runtime (Pyodide) and the host JavaScript environment. The runPython and runPythonAsync functions execute Python code without restricting access to the JavaScript bridge, allowing executed Python code to access the js module in Pyodide. This can lead to a sandbox escape, enabling attackers to modify the global JavaScript environment, interact with the Node.js process, and alter the behavior of the MCP server. Attackers can overwrite existing MCP tools, potentially replacing secure tools with malicious versions that exfiltrate data.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

There are no configuration-based workarounds. Securing the environment requires modifying the source code to disable the Pyodide-to-JS bridge or moving the execution environment to a fully isolated sandbox, such as a separate container.

Conclusion

The mcp-run-python package has a critical vulnerability that allows for sandbox escape and server takeover due to insufficient isolation between the Python runtime and the JavaScript environment. Users are strongly advised to discontinue use of this package and migrate to safer alternatives.

See every vulnerability recorded for mcp-run-python →

Share this vulnerability

FAQ

The vulnerability allows for a sandbox escape and server takeover due to a lack of isolation between the Python runtime and the JavaScript environment.

An attacker could exploit this vulnerability to modify your application's JavaScript environment, potentially leading to data exfiltration or unauthorized access to server functionalities.

No, there is currently no patch available as the mcp-run-python project is archived and unlikely to receive further updates.

You should immediately stop using the mcp-run-python package and migrate to a maintained alternative that provides proper sandboxing.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground without any signup.

Related vulnerabilities

Recent vulnerabilities recorded for mcp-run-python.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback