Skip to content

[chore]: bump mcp to >=1.26.0 to mitigate DNS rebinding and align with FastMCP 3.x#150

Open
shuvajyotikar13 wants to merge 2 commits intoClickHouse:mainfrom
shuvajyotikar13:patch-1
Open

[chore]: bump mcp to >=1.26.0 to mitigate DNS rebinding and align with FastMCP 3.x#150
shuvajyotikar13 wants to merge 2 commits intoClickHouse:mainfrom
shuvajyotikar13:patch-1

Conversation

@shuvajyotikar13
Copy link

Description:

This PR updates the core dependency bounds in pyproject.toml to address a critical security vulnerability and ensure compatibility with the latest FastMCP framework architectural changes.

Key Changes

  1. Security Fix (CVE-2025-66416): Narrowed the mcp[cli] dependency bound from >=1.1.0 to >=1.26.0.

Context: Versions of the Python MCP SDK prior to 1.23.0 are vulnerable to a DNS rebinding attack. In a database context like ClickHouse, this is particularly risky as it could allow a malicious webpage to execute unauthorized SQL queries against a local ClickHouse instance via the MCP server's network interface.

  1. FastMCP 3.x Alignment: Bumped fastmcp to >=3.0.0.

Reasoning: The ClickHouse server implementation leverages FastMCP for resource and tool exposure. FastMCP 3.x introduces significant protocol lifecycle improvements that require the 1.26.x baseline of the underlying SDK for optimal stability.

Validation

  1. Synchronized local environment using uv sync.

  2. Verified that the ClickHouse connection and schema-listing tools remain functional under the updated protocol version.

  3. passed ruff check and internal linting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant