CVE-2025-66416
High · 8.1CVSS
8.1
EPSS
0.5%
Published
Dec 2, 2025
CISA due date
—
The record
The MCP Python SDK, called `mcp` on PyPI, is a Python implementation of the Model Context Protocol (MCP). Prior to version 1.23.0, tThe 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. This vulnerability is fixed in 1.23.0.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | mcp | 0 | 1.23.0 |
| Chainguard | open-webui | 0 | 0.6.40-r1 |
| Chainguard | open-webui-compat | 0 | 0.6.40-r1 |
| Chainguard | py3-semgrep | 0 | 1.145.0-r0 |
| Chainguard | semgrep | 0 | 1.145.0-r0 |
| Wolfi | open-webui | 0 | 0.6.40-r1 |
| Wolfi | open-webui-compat | 0 | 0.6.40-r1 |
| Wolfi | py3-semgrep | 0 | 1.145.0-r0 |
| Wolfi | semgrep | 0 | 1.145.0-r0 |
Related vulnerabilities
- CVE-2026-33699 pypdf is a free and open-source pure-python PDF library. Also affects open-webui
- CVE-2026-4539 A security flaw has been discovered in pygments up to 2.19.2. Also affects open-webui
- CVE-2026-33230 NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and… Also affects open-webui
- CVE-2026-33231 NLTK (Natural Language Toolkit) is a suite of open source Python modules, data sets, and… Also affects open-webui
- CVE-2026-32597 PyJWT is a JSON Web Token implementation in Python. Also affects open-webui
- CVE-2026-32274 Black is the uncompromising Python code formatter. Also affects open-webui
- CVE-2026-31826 pypdf is a free and open-source pure-python PDF library. Also affects open-webui
- CVE-2026-28351 pypdf is a free and open-source pure-python PDF library. Also affects open-webui