---
schema_version: '1.0'
id: security-20260812-4b370d
title: 'CVE-2025-66416: Model Context Protocol (MCP) Python SDK does not enable DNS
  rebinding protection by default'
url: https://osv.dev/vulnerability/PYSEC-2026-1617
url_hash: 4b370d0ca6ed61b9680133310eedd641ee865c1817b11973b0277b5f98332332
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-1617
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2025-66416
- PYSEC-2026-1617
- 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: '2026-07-07T16:03:11Z'
fetched_at: '2026-08-12T16:00:04.436786Z'
updated_at: '2026-08-28T13:30:51.729765Z'
status: published
content_hash: 89a065f959eb68e24156a49b7a3263fbd86d84ae9d1943c9f14b844ef97bef04
content_changed_at: '2026-08-22T13:15:21.512585Z'
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
- library vulnerability
- MCP
- Model
- not
- protection
- Protocol
- PyPI
- PYSEC-2026-1617
- 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 / PYSEC-2026-1617 / 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:** PYSEC-2026-1617 (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/modelcontextprotocol/python-sdk
- https://pypi.org/project/mcp
- https://github.com/advisories/GHSA-9h52-p55h-vw2f

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-1617_

## Source
元記事: [CVE-2025-66416: Model Context Protocol (MCP) Python SDK does not enable DNS rebinding protection by default](https://osv.dev/vulnerability/PYSEC-2026-1617) — published 2026-07-07T16:03:11Z
