Update dependency mcp to v1.23.0 [SECURITY] #3366
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==1.16.0->==1.23.0GitHub Vulnerability Alerts
CVE-2025-66416
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
FastMCPwith streamable HTTP or SSE transport, and has not configuredTransportSecuritySettings, 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 thehostparameter is127.0.0.1orlocalhost. Users are advised to update to version1.23.0to receive this automatic protection. Users with custom low-level server configurations usingStreamableHTTPSessionManagerorSseServerTransportdirectly should explicitly configureTransportSecuritySettingswhen running an unauthenticated server on localhost.Release Notes
modelcontextprotocol/python-sdk (mcp)
v1.23.0Compare Source
Summary
This release brings us up to speed with the latest MCP spec
2025-11-25. Take a look at the latest spec as well as the release blog post.What's Changed
d3a1841)New Contributors
Full Changelog: modelcontextprotocol/python-sdk@v1.22.0...v1.23.0
v1.22.0Compare Source
What's Changed
ClientSessionGroup.call_tooland.connect_to_serverby @inaku-Gyan in #1576jsonschemalibrary by @wuliang229 in #1596New Contributors
Full Changelog: modelcontextprotocol/python-sdk@v1.21.1...v1.22.0
v1.21.2Compare Source
Hotfix Release
This is a hotfix release to address a critical bug in OAuth scope handling that caused failures on 401 responses.
Related:
What's Changed
New Contributors
Full Changelog: modelcontextprotocol/python-sdk@v1.21.1...v1.21.2
v1.21.1Compare Source
What's Changed
func_metadata()implementation by @Viicos in #1496New Contributors
Full Changelog: modelcontextprotocol/python-sdk@v1.21.0...v1.21.1
v1.21.0Compare Source
What's Changed
ClientSessionGroupdoc string by @inaku-Gyan in #1572New Contributors
Full Changelog: modelcontextprotocol/python-sdk@v1.20.0...v1.21.0
v1.20.0Compare Source
What's Changed
New Contributors
Full Changelog: modelcontextprotocol/python-sdk@v1.19.0...v1.20.0
v1.19.0Compare Source
What's Changed
New Contributors
Full Changelog: modelcontextprotocol/python-sdk@v1.18.0...v1.19.0
v1.18.0Compare Source
What's Changed
New Contributors
Full Changelog: modelcontextprotocol/python-sdk@v1.17.0...v1.18.0
v1.17.0Compare Source
What's Changed
New Contributors
Full Changelog: modelcontextprotocol/python-sdk@v1.16.0...v1.17.0
Configuration
📅 Schedule: Branch creation - "" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.