Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mcp
  4. ›
  5. CVE-2025-53366

CVE-2025-53366: MCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoS

July 4, 2025 (updated July 5, 2025)

A validation error in the MCP SDK can cause an unhandled exception when processing malformed requests, resulting in service unavailability (500 errors) until manually restarted. Impact may vary depending on the deployment conditions, and presence of infrastructure-level resilience measures.

Thank you to Rich Harang for reporting this issue.

References

  • github.com/advisories/GHSA-3qhf-m339-9g5v
  • github.com/modelcontextprotocol/python-sdk
  • github.com/modelcontextprotocol/python-sdk/commit/29c69e6a47d0104d0afcea6ac35e7ab02fde809a
  • github.com/modelcontextprotocol/python-sdk/pull/822
  • github.com/modelcontextprotocol/python-sdk/releases/tag/v1.9.4
  • github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-3qhf-m339-9g5v
  • nvd.nist.gov/vuln/detail/CVE-2025-53366

Code Behaviors & Features

Detect and mitigate CVE-2025-53366 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.9.4

Fixed versions

  • 1.9.4

Solution

Upgrade to version 1.9.4 or above.

Weakness

  • CWE-248: Uncaught Exception

Source file

pypi/mcp/CVE-2025-53366.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:42 +0000.