SWI-3723 [Snyk] Security upgrade fastmcp from 2.13.2 to 3.2.0#7
SWI-3723 [Snyk] Security upgrade fastmcp from 2.13.2 to 3.2.0#7bwappsec wants to merge 1 commit into
Conversation
The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-FASTMCP-15871014 - https://snyk.io/vuln/SNYK-PYTHON-FASTMCP-15871029 - https://snyk.io/vuln/SNYK-PYTHON-FASTMCP-15871030
|
This is a major version upgrade from v2 to v3 that introduces significant architectural changes, along with specific breaking API modifications that require developer action. Key Breaking Changes:
Architectural Changes: Recommendation: Review all
|
|
| Status | Scan Engine | Total (0) | ||||
|---|---|---|---|---|---|---|
| Open Source Security | 0 | 0 | 0 | 0 | See details | |
| Licenses | 0 | 0 | 0 | 0 | See details | |
| ✅ | Code Security | 0 | 0 | 0 | 0 | 0 issues |
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.
Folds in PR #7's security fix the right way. #7 bumped fastmcp in requirements.txt — a file this branch deleted — so it couldn't merge. Bump the pin in pyproject.toml instead: fastmcp~=3.2 (resolves 3.4.2, fixes SNYK-PYTHON-FASTMCP-15871014/29/30 — SSRF + command injection) and mcp~=1.24 (fastmcp 3.x requires mcp>=1.24). fastmcp 3.x moved/renamed APIs we use; migrated all call sites: - fastmcp.server.openapi → fastmcp.server.providers.openapi (MCPType) and fastmcp.utilities.openapi (HTTPRoute) - get_tools()/get_resources() (dict) → list_tools()/list_resources() (lists of objects); source reads .name, tests use a tool_map() helper - import_server() → mount() (sync; no namespace = bare tool names, so profile filtering by operationId is unaffected) - dropped the obsolete FASTMCP_EXPERIMENTAL_ENABLE_NEW_OPENAPI_PARSER env flag (the new parser is the only one in 3.x) - the per-tool httpx client moved from server._client to tool._client; added a server_client() test helper 114 tests pass; fastmcp deprecation warnings cleared (52 → 3, the remaining 3 are our own intentional UserWarnings + a Starlette internal). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Superseded by #8 (commit 1050906). The fastmcp 2.13→3.x security bump (fixes SNYK-PYTHON-FASTMCP-15871014/29/30) is folded into #8 directly. This PR edits |
Snyk has created this PR to fix 3 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):
requirements.txtBreaking Change Risk
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Server-side Request Forgery (SSRF)
🦉 Command Injection