mcp: known vulnerabilities and the safe version
The version to be on
Version 2.2.0 or later fixes every vulnerability on this page that has a recorded fix.
Upgrade mcp with pip
pip install --upgrade "mcp>=2.2.0"
pip show mcp | grep VersionPin it in requirements.txt
mcp>=2.2.0Check the release notes before a large jump in version. Newer vulnerabilities may have been found since this page was updated.
Watch mcp
Get an email only when mcp has a new vulnerability record. Unsubscribe with one click.
Badge for your README
Shows the number of known critical and high vulnerabilities in mcp and the version that fixes them. It updates by itself.
Markdown
[](https://securityelites.com/ai-vulnerabilities/package/mcp/)All records
- MCP SDK sends OAuth secrets to wrong server if the server says soHigh · CVE-2026-115563 · fixed in 2.2.0 · 20 Nov 2026
- Model Context Protocol Python SDK: Server bearer-token authentication accepts tokens issued for a different…Medium · CVE-2026-116684 · fixed in 2.2.0 · 28 Oct 2026
- Model Context Protocol Python SDK: HTTP client transports followed cross-origin redirects carrying custom h…Medium · CVE-2026-116685 · fixed in 2.2.0 · 28 Oct 2026
- Model Context Protocol Python SDK: Client fetched server-chosen $ref URLs while validating tool results aga…Medium · CVE-2026-116686 · fixed in 2.2.0 · 28 Oct 2026
- MCP Python SDK: Unbounded Session Accumulation in StreamableHTTP Transport Enables Resource ExhaustionMedium · CVE-2026-59951 · fixed in 2.2.0 · 16 Oct 2026
- MCP Python SDK: WebSocket server transport does not support Host/Origin validationUnknown · CVE-2026-59950 · fixed in 1.28.1 · 17 Jul 2026
- MCP Python SDK: HTTP transports serve session requests without verifying the authenticated principalUnknown · CVE-2026-52869 · fixed in 1.27.2 · 17 Jul 2026
- MCP Python SDK: Experimental task handlers allow any client to access and cancel other clients' tasksUnknown · CVE-2026-52870 · fixed in 1.27.2 · 17 Jul 2026
- Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by defaultUnknown · CVE-2025-66416 · fixed in 1.23.0 · 2 Dec 2025
- MCP Python SDK vulnerability in the FastMCP Server causes validation error, leading to DoSUnknown · CVE-2025-53366 · fixed in 1.9.4 · 5 Jul 2025
- MCP Python SDK has Unhandled Exception in Streamable HTTP Transport, Leading to Denial of ServiceUnknown · CVE-2025-53365 · fixed in 1.10.0 · 5 Jul 2025