<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Python-SDK on 办公AI智能小助手</title>
    <link>https://blog.qife122.com/tags/python-sdk/</link>
    <description>Recent content in Python-SDK on 办公AI智能小助手</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <copyright>qife</copyright>
    <lastBuildDate>Wed, 10 Dec 2025 10:52:53 +0800</lastBuildDate>
    <atom:link href="https://blog.qife122.com/tags/python-sdk/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>模型上下文协议Python SDK存在安全漏洞：默认未启用DNS重绑定防护</title>
      <link>https://blog.qife122.com/p/%E6%A8%A1%E5%9E%8B%E4%B8%8A%E4%B8%8B%E6%96%87%E5%8D%8F%E8%AE%AEpython-sdk%E5%AD%98%E5%9C%A8%E5%AE%89%E5%85%A8%E6%BC%8F%E6%B4%9E%E9%BB%98%E8%AE%A4%E6%9C%AA%E5%90%AF%E7%94%A8dns%E9%87%8D%E7%BB%91%E5%AE%9A%E9%98%B2%E6%8A%A4/</link>
      <pubDate>Wed, 10 Dec 2025 10:52:53 +0800</pubDate>
      <guid>https://blog.qife122.com/p/%E6%A8%A1%E5%9E%8B%E4%B8%8A%E4%B8%8B%E6%96%87%E5%8D%8F%E8%AE%AEpython-sdk%E5%AD%98%E5%9C%A8%E5%AE%89%E5%85%A8%E6%BC%8F%E6%B4%9E%E9%BB%98%E8%AE%A4%E6%9C%AA%E5%90%AF%E7%94%A8dns%E9%87%8D%E7%BB%91%E5%AE%9A%E9%98%B2%E6%8A%A4/</guid>
      <description>&lt;h1 id=&#34;model-context-protocol-mcp-python-sdk-默认未启用-dns-重绑定保护--cve-2025-66416&#34;&gt;Model Context Protocol (MCP) Python SDK 默认未启用 DNS 重绑定保护 · CVE-2025-66416&lt;/h1&gt;&#xA;&lt;h2 id=&#34;漏洞详情&#34;&gt;漏洞详情&lt;/h2&gt;&#xA;&lt;h3 id=&#34;受影响的软件包&#34;&gt;受影响的软件包&lt;/h3&gt;&#xA;&lt;p&gt;&lt;strong&gt;包管理器:&lt;/strong&gt; pip&#xA;&lt;strong&gt;包名称:&lt;/strong&gt; mcp (pip)&lt;/p&gt;&#xA;&lt;h3 id=&#34;受影响版本&#34;&gt;受影响版本&lt;/h3&gt;&#xA;&lt;p&gt;小于 1.23.0 的所有版本&lt;/p&gt;&#xA;&lt;h3 id=&#34;已修复版本&#34;&gt;已修复版本&lt;/h3&gt;&#xA;&lt;p&gt;1.23.0&lt;/p&gt;&#xA;&lt;h2 id=&#34;漏洞描述&#34;&gt;漏洞描述&lt;/h2&gt;&#xA;&lt;p&gt;Model Context Protocol (MCP) Python SDK 在默认情况下未为基于 HTTP 的服务器启用 DNS 重绑定保护。当使用 FastMCP 配合流式 HTTP 或 SSE 传输在本地主机（localhost）上运行一个未经身份验证的基于 HTTP 的 MCP 服务器，并且未配置 &lt;code&gt;TransportSecuritySettings&lt;/code&gt; 时，恶意网站可能利用 DNS 重绑定攻击绕过同源策略限制，向本地 MCP 服务器发送请求。这可能导致攻击者在这些特定情况下，能够代表用户调用 MCP 服务器暴露的工具或访问资源。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
