CVE-2026-25904: Mcp run python MCP Run Python Deno Sandbox Vulnerability
MODERATECVE-2026-25904 is a MODERATE (CVSS 5.8) mcp run python deno sandbox vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Mcp run python libraries in the PyPI ecosystem. The issue involves mcp run python deno sandbox misconfiguration allows ssrf attacks via localhost access. Remediation is available in the latest vendor maintenance releases.
CVE-2026-25904 at a Glance
Security Impact
CVSS: 5.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L).
How to Fix CVE-2026-25904
To remediate this vulnerability, upgrade all affected Mcp run python dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install mcp-run-python>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show mcp-run-python
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-25904, inspect your installed packages using pip:
pip show mcp-run-python
Analyze the terminal output to locate any version of Mcp run python in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show mcp-run-python command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Mcp run python, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-25904 Affected Mcp run python Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
mcp-run-python
|
PyPI |
≤ 0.0.22
|
|
References
Frequently Asked Questions
What is CVE-2026-25904?
Which Mcp run python versions are affected?
What version fixes CVE-2026-25904?
Is mcp-run-python affected?
What is the CVSS score of CVE-2026-25904?
What CWE is associated with CVE-2026-25904?
How can I check PyPI dependencies for CVE-2026-25904?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6fgp-m6q4-j3q5",
"modified" : "2026-02-11T19:47:51Z",
"published" : "2026-02-09T09:30:22Z",
"aliases" : [ "CVE-2026-25904" ],
"summary" : "MCP Run Python Deno Sandbox Misconfiguration Allows SSRF Attacks via Localhost Access",
"details" : "### Impact\n**Server-Side Request Forgery (SSRF):**\nA security vulnerability exists in the `mcp-run-python` tool (specifically within the Pydantic-AI integration) due to an overly permissive Deno sandbox configuration.\n\nThe tool configures the Deno runtime—which is intended to isolate the execution of untrusted Python code—with network permissions that include access to the host's loopback interface (`localhost`). Consequently, malicious Python code executed through the tool can bypass network isolation and send HTTP requests to internal services running on the host machine. This allows attackers to interact with local APIs, databases, or cloud metadata services that should not be accessible from the sandbox.\n\n### Patches\n**No Patch Available:**\nThe `mcp-run-python` project is currently **archived** and maintainers have indicated it is unlikely to receive a fix.\n\n**Recommendation:**\nUsers are strongly advised to **immediately stop using** this package.\nIf functionality is required, users must migrate to an alternative execution environment that enforces strict network isolation (e.g., blocking all outbound traffic or explicitly denying access to `127.0.0.1`/`::1`).\n\n### Workarounds\nThere are no configuration-based workarounds provided by the package itself. Remediation requires modifying the source code to restrict the Deno permissions (specifically removing or narrowing the `--allow-net` flag) or moving the execution to a container with no network access.\n\n### Resources\n* [CVE-2026-25904](https://nvd.nist.gov/vuln/detail/CVE-2026-25904)\n* [JFrog Security Analysis: Deno SSRF](https://research.jfrog.com/vulnerabilities/mcp-run-python-deno-ssrf-jfsa-2026-001653029)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "mcp-run-python"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "0.0.22"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-25904"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/pydantic/mcp-run-python"
}, {
"type" : "WEB",
"url" : "https://research.jfrog.com/vulnerabilities/mcp-run-python-deno-ssrf-jfsa-2026-001653029"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-02-11T19:47:51Z",
"nvd_published_at" : "2026-02-09T09:16:33Z"
}
}