Server-side Request Forgery (SSRF) Affecting mcp package, versions [1.10.0,1.30.0)[2.0.0,2.2.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.34% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MCP-21756861
  • published27 Oct 2026
  • disclosed27 Oct 2026
  • creditHem Parekh

Introduced: 27 Oct 2026

NewCVE-2026-116686  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade mcp to version 1.30.0, 2.2.0 or higher.

Overview

mcp is a Model Context Protocol SDK

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the _validate_tool_result function in src/mcp/client/session.py, where $ref references in a tool's output schema are resolved against external registries rather than being restricted to the schema document itself. An attacker who controls a tool's output schema can supply a $ref that points to an external or unresolvable URI, causing an unhandled Unresolvable exception that crashes the client session.

CVSS Base Scores

version 4.0
version 3.1