CVE-2026-25904: Mcp run python MCP Run Python Deno Sandbox Vulnerability

MODERATE
Advisory Identifier: GHSA-6fgp-m6q4-j3q5
CVSS 5.8
CWE-918
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-25904
GHSA Identifier GHSA-6fgp-m6q4-j3q5
Severity MODERATE
CVSS v3.1 Base Score 5.8
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Mcp run python
Package Ecosystem PyPI
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability Low (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.

mcp-run-python fixed: Latest secure release
pip install mcp-run-python>=Latest secure release
Verify Direct and Transitive Dependencies

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

### Impact **Server-Side Request Forgery (SSRF):** A security vulnerability exists in the `mcp-run-python` tool (specifically within the Pydantic-AI integration) due to an overly permissive Deno sandbox configuration. The 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. ### Patches **No Patch Available:** The `mcp-run-python` project is currently **archived** and maintainers have indicated it is unlikely to receive a fix. **Recommendation:** Users are strongly advised to **immediately stop using** this package. If 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`). ### Workarounds There 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. ### Resources * [CVE-2026-25904](https://nvd.nist.gov/vuln/detail/CVE-2026-25904) * [JFrog Security Analysis: Deno SSRF](https://research.jfrog.com/vulnerabilities/mcp-run-python-deno-ssrf-jfsa-2026-001653029)

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?
CVE-2026-25904 is a security vulnerability in Mcp run python involving MCP Run Python Deno Sandbox Misconfiguration Allows SSRF Attacks via Localhost Access under CWE-918: Server-Side Request Forgery (SSRF).
Which Mcp run python versions are affected?
Affected versions include releases prior to current release patches across affected packages: mcp-run-python.
What version fixes CVE-2026-25904?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is mcp-run-python affected?
Yes, mcp-run-python is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-25904?
CVE-2026-25904 has a CVSS v3.1 base score of 5.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L.
What CWE is associated with CVE-2026-25904?
CVE-2026-25904 is classified under CWE-918: Server-Side Request Forgery (SSRF) (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.).
How can I check PyPI dependencies for CVE-2026-25904?
Run the dependency tree command: 'pip show mcp-run-python'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}