CVE-2025-53365: Mcp Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-j975-95f5-7wqh
CWE-248
Published
Advisory Summary

CVE-2025-53365 is a HIGH denial of service vulnerability (CWE-248: Uncaught Exception) affecting Mcp libraries in the PyPI ecosystem. The issue involves mcp python sdk has unhandled exception in streamable http transport, leading to denial of service. Remediation is available by upgrading affected packages to version 1.10.0.

CVE-2025-53365 at a Glance

CVE Identifier CVE-2025-53365
GHSA Identifier GHSA-j975-95f5-7wqh
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-248: Uncaught Exception
Affected Product Mcp
Package Ecosystem PyPI
Published Date
Last Updated

How to Fix CVE-2025-53365

To remediate this vulnerability, upgrade all affected Mcp 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 fixed: 1.10.0
pip install mcp>=1.10.0
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

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2025-53365, inspect your installed packages using pip:

pip show mcp

Analyze the terminal output to locate any version of Mcp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.10.0), your application is affected.

Note: The pip show mcp command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-248: Uncaught Exception, where an exception is thrown from a function, but it is not caught. In Mcp, 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

If a client deliberately triggers an exception after establishing a streamable HTTP session, this can lead to an uncaught ClosedResourceError on the server side, causing the server to crash and requiring a restart to restore service. Impact may vary depending on the deployment conditions, and presence of infrastructure-level resilience measures. Thank you to Rich Harang for reporting this issue.

CVE-2025-53365 Affected Mcp Versions

1 component(s)
Fixed Versions:
1.10.0
Product / Package Ecosystem Affected Versions Fixed Version
mcp
PyPI
< 1.10.0
1.10.0

References

Frequently Asked Questions

What is CVE-2025-53365?
CVE-2025-53365 is a security vulnerability in Mcp involving MCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service under CWE-248: Uncaught Exception.
Which Mcp versions are affected?
Affected versions include releases prior to 1.10.0 across affected packages: mcp.
What version fixes CVE-2025-53365?
Upgrading to 1.10.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is mcp affected?
Yes, mcp is affected in releases prior to 1.10.0. Upgrade your dependency to 1.10.0 or later.
What CWE is associated with CVE-2025-53365?
CVE-2025-53365 is classified under CWE-248: Uncaught Exception (An exception is thrown from a function, but it is not caught.).
How can I check PyPI dependencies for CVE-2025-53365?
Run the dependency tree command: 'pip show mcp'. 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-j975-95f5-7wqh",
  "modified" : "2026-07-16T18:30:53Z",
  "published" : "2025-07-04T22:06:31Z",
  "aliases" : [ "CVE-2025-53365" ],
  "summary" : "MCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of Service",
  "details" : "If a client deliberately triggers an exception after establishing a streamable HTTP session, this can lead to an uncaught ClosedResourceError on the server side, causing the server to crash and requiring a restart to restore service. Impact may vary depending on the deployment conditions, and presence of infrastructure-level resilience measures.\n\nThank you to Rich Harang for reporting this issue.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "mcp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.10.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-j975-95f5-7wqh"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-53365"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modelcontextprotocol/python-sdk/pull/967"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modelcontextprotocol/python-sdk/commit/7b420656de48cfdb90b39eb582e60b6d55c2f891"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-j975-95f5-7wqh"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/modelcontextprotocol/python-sdk"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/modelcontextprotocol/python-sdk/releases/tag/v1.10.0"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/mcp/PYSEC-2026-1618.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://pypi.org/project/mcp"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-248" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-07-04T22:06:31Z",
    "nvd_published_at" : "2025-07-04T22:15:22Z"
  }
}