Insecure Default Initialization of Resource Affecting mcp package, versions [,1.23.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.52% (42nd 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 IDSNYK-PYTHON-MCP-14171912
  • published3 Dec 2025
  • disclosed2 Dec 2025
  • creditUnknown

Introduced: 2 Dec 2025

CVE-2025-66416  (opens in a new tab)
CWE-1188  (opens in a new tab)
CWE-350  (opens in a new tab)

How to fix?

Upgrade mcp to version 1.23.0 or higher.

Overview

mcp is a Model Context Protocol SDK

Affected versions of this package are vulnerable to Insecure Default Initialization of Resource for the DNS rebinding protection that is not enabled by default for HTTP-based servers running on localhost without authentication using FastMCP. An attacker can access resources or invoke tools exposed by the local server by exploiting DNS rebinding through a malicious website.

Note:

This issue does not affect servers using stdio transport.

##Workaround

Users that can not upgrade to the fixed version are advised to explicitly configure TransportSecuritySettings when running an unauthenticated server on localhost with custom low-level server configurations using StreamableHTTPSessionManager or SseServerTransport directly.

References

CVSS Base Scores

version 4.0
version 3.1