---
schema_version: '1.0'
id: security-20260812-34fefa
title: 'CVE-2025-66416: Model Context Protocol (MCP) Python SDK does not enable DNS
  rebinding protection by default'
url: https://osv.dev/vulnerability/GHSA-9h52-p55h-vw2f
url_hash: 34fefaf48709d34b42a86c78fde912d71d2d8c1ceab5d4b8d1fb8e238afe810b
canonical_url: https://osv.dev/vulnerability/GHSA-9h52-p55h-vw2f
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2025-66416
- GHSA-9h52-p55h-vw2f
- severity:CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- mcp
- PyPI
lang: en
published_at: '2025-12-02T16:52:08Z'
fetched_at: '2026-08-12T16:00:04.423374Z'
updated_at: '2026-08-22T14:41:29Z'
status: published
content_hash: 56e9e02444dc8143aad05339e2fba68014041b8d32ae732f19cf1e742d375f6e
content_changed_at: '2026-08-22T13:15:21.502226Z'
license_note: full
summary: Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection
  by default
summary_source: rss
summary_en: Model Context Protocol (MCP) Python SDK does not enable DNS rebinding
  protection by default
summary_omitted_reason: null
redistribution: true
keywords_en:
- Context
- Context-Memory Bottleneck
- CVE
- CVE-2025-66416
- default
- DNS
- does
- enable
- GHSA-9h52-p55h-vw2f
- library vulnerability
- MCP
- Model
- not
- protection
- Protocol
- PyPI
- Python
- rebinding
- SDK
- severity:CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
- software security
entities_en:
- name: Context-Memory Bottleneck
  type: event
- name: CVE
  type: data
- name: MCP
  type: concept
- name: Model
  type: UNKNOWN
- name: PyPI
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE
  type: data
- name: MCP
  type: concept
- name: PyPI
  type: artifact
- name: Model
  type: UNKNOWN
- name: Context-Memory Bottleneck
  type: event
related_auto:
- name: Portal
  type: organization
  weight: 1.0
- name: Concept
  type: UNKNOWN
  weight: 1.0
- name: AIエージェント
  type: artifact
  weight: 1.0
- name: Cloudflare Workers
  type: 技術
  weight: 1.0
- name: Hugging Face
  type: organization
  weight: 1.0
computed_at: '2026-08-22T14:41:23Z'
---

# CVE-2025-66416: Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default

## TL;DR
Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default

## Key Points
- cve / CVE-2025-66416 / GHSA-9h52-p55h-vw2f / severity:CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N / mcp / PyPI

## Details
**Severity:** CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
**Advisory:** GHSA-9h52-p55h-vw2f (CVE-2025-66416)

**Details:**
### Description

The Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default for HTTP-based servers. When an HTTP-based MCP server is run on localhost without authentication using `FastMCP` with streamable HTTP or SSE transport, and has not configured `TransportSecuritySettings`, a malicious website could exploit DNS rebinding to bypass same-origin policy restrictions and send requests to the local MCP server. This could allow an attacker to invoke tools or access resources exposed by the MCP server on behalf of the user in those limited circumstances.

Note that running HTTP-based MCP servers locally without authentication is not recommended per MCP security best practices. This issue does not affect servers using stdio transport.

Servers created via `FastMCP()` now have DNS rebinding protection enabled by default when the `host` parameter is `127.0.0.1` or `localhost`. Users are advised to update to version `1.23.0` to receive this automatic protection. Users with custom low-level server configurations using `StreamableHTTPSessionManager` or `SseServerTransport` directly should explicitly configure `TransportSecuritySettings` when running an unauthenticated server on localhost.

**References:**
- https://github.com/modelcontextprotocol/python-sdk/security/advisories/GHSA-9h52-p55h-vw2f
- https://nvd.nist.gov/vuln/detail/CVE-2025-66416
- https://github.com/modelcontextprotocol/python-sdk/commit/d3a184119e4479ea6a63590bc41f01dc06e3fa99
- https://github.com/advisories/GHSA-9h52-p55h-vw2f
- https://github.com/modelcontextprotocol/python-sdk
- https://github.com/pypa/advisory-database/tree/main/vulns/mcp/PYSEC-2026-1617.yaml
- https://pypi.org/project/mcp

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-9h52-p55h-vw2f_

## Source
元記事: [CVE-2025-66416: Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default](https://osv.dev/vulnerability/GHSA-9h52-p55h-vw2f) — published 2025-12-02T16:52:08Z
