
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-53366 is a Denial of Service vulnerability in the MCP Python SDK (Model Context Protocol), published as mcp on PyPI, caused by an uncaught exception when processing malformed requests in the FastMCP Server component. Discovered by Rich Harang and disclosed on July 4, 2025, it affects all versions of the mcp package prior to 1.9.4. The vulnerability results in service unavailability (HTTP 500 errors) requiring manual restart. It carries a CVSS v4 base score of 8.7 (High) (Github Advisory).
The root cause is an uncaught exception (CWE-248) in src/mcp/shared/session.py within the _receive_loop method. When the server receives a malformed JSON-RPC request — for example, an initialize or tools/call request missing required parameters — the Pydantic model validation call (model_validate) raises an exception that was not caught, propagating up and crashing the server process. The fix (PR #822) wraps the validation and request-handling logic in a try/except block that catches all exceptions and returns a proper JSON-RPC error response (INVALID_PARAMS) instead of allowing the exception to terminate the server (Github PR #822, Patch Commit). No authentication or special privileges are required to trigger the flaw — any network-reachable MCP server running a vulnerable version is susceptible.
Successful exploitation results in complete service unavailability of the affected MCP server, which must be manually restarted to recover. There is no impact on confidentiality or integrity of data; the vulnerability is purely an availability issue. Deployments without infrastructure-level resilience measures (e.g., automatic process restarts via systemd, Kubernetes, or similar) are most severely affected, as the service remains down until an operator intervenes (Github Advisory, Feedly).
No public proof-of-concept exploit code has been published, and there is no evidence of active in-the-wild exploitation as of the disclosure date (Github Advisory). The vulnerability is trivially exploitable by any unauthenticated attacker who can send a single malformed JSON-RPC request to a network-accessible MCP server. The EPSS score is approximately 0.195% (41st percentile), indicating a low but non-negligible probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
initialize or tools/call) but omit the required params field:{"jsonrpc": "2.0", "id": "attacker-id-1", "method": "initialize"}_receive_loop attempts Pydantic model validation on the malformed request, raises an unhandled exception, and the server process terminates or becomes unresponsive, returning 500 errors.params fields; sudden spike in HTTP 500 responses from the MCP service.ValidationError exceptions in MCP server logs originating from src/mcp/shared/session.py; log entries indicating the server process exited unexpectedly.python, uvicorn, or similar) terminating unexpectedly or becoming unresponsive; repeated process restarts if a supervisor is configured.Upgrade the mcp PyPI package to version 1.9.4 or later, which contains the patch that wraps request validation in proper exception handling and returns a JSON-RPC error response instead of crashing (Github Advisory, Patch Commit). As a temporary workaround for deployments that cannot immediately upgrade, configure infrastructure-level process supervisors (e.g., systemd with Restart=always, Kubernetes liveness probes, or Docker restart policies) to automatically restart the service upon crash. Additionally, implement network-level controls to restrict access to MCP server endpoints to trusted clients only.
JFrog published coverage highlighting this vulnerability as an example of the need for stronger security focus in the MCP ecosystem, noting the growing attack surface as MCP adoption increases (SD Times). Community discussion on GitHub noted that the issue was a significant security concern for remote MCP servers, with one contributor commenting that "anyone can lock up a server just by sending a bad payload" (Github PR #822). Red Hat also tracked the vulnerability and issued a CVE entry (Red Hat CVE).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."