Fix Dependabot security alerts: remove vulnerable langchain-core, upgrade fastmcp#155
Merged
sanjaychelliah merged 2 commits intomainfrom May 5, 2026
Merged
Conversation
…rable langchain-core Agent-Logs-Url: https://github.com/Clarifai/examples/sessions/74565200-f943-44d5-b4c1-22accf74d48f Co-authored-by: sanjaychelliah <65780631+sanjaychelliah@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix all currently open Dependabot security alerts
Fix Dependabot security alerts: remove vulnerable langchain-core, upgrade fastmcp
May 5, 2026
sanjaychelliah
approved these changes
May 5, 2026
There was a problem hiding this comment.
Pull request overview
This PR addresses Dependabot security alerts in the MCP agent examples by removing an unused vulnerable dependency and upgrading fastmcp to a non-vulnerable major version.
Changes:
- Upgraded
fastmcpfrom>=2.3.4to>=3.2.4in both MCP agent examples. - Removed
langchain-core==0.3.52fromchat-mcp-agentsince it is not used by the agent code.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
agents/mcp/chat-mcp-agent/requirements.txt |
Removes langchain-core and upgrades fastmcp to resolve Dependabot alerts. |
agents/mcp/llm-mcp-agent/requirements.txt |
Upgrades fastmcp to resolve Dependabot alerts. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Two vulnerable dependencies in the MCP agent examples were flagged by Dependabot:
langchain-core==0.3.52(3 CVEs) andfastmcp>=2.3.4(10 CVEs).Changes
agents/mcp/chat-mcp-agent/requirements.txtlangchain-core==0.3.52— not imported anywhere in the agent code; eliminates CVE-2025-65106 (template injection), CVE-2025-68664 (serialization injection), and a path traversal CVE (patched only in>=1.2.22, no 0.3.x backport)fastmcp>=2.3.4→fastmcp>=3.2.4agents/mcp/llm-mcp-agent/requirements.txtfastmcp>=2.3.4→fastmcp>=3.2.4fastmcp CVEs resolved by
>=3.2.4server_name(Windows deep link + CLI)AuthorizationheaderWarning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.osv.dev/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)https://api.github.com/repos/Clarifai/examples/dependabot/alerts/usr/bin/curl curl -s -H Authorization: token REDACTED(http block)nvd.nist.gov/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)osv.dev/home/REDACTED/work/_temp/ghcca-node/node/bin/node /home/REDACTED/work/_temp/ghcca-node/node/bin/node --enable-source-maps /home/REDACTED/work/_temp/copilot-developer-action-main/dist/index.js(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created from Copilot chat.