Skip to content

[Snyk] Security upgrade @modelcontextprotocol/sdk from 1.5.0 to 1.25.2#17

Open
SMSDAO wants to merge 1 commit intomainfrom
snyk-fix-06411ed5fbe38b6162c14f64c3480684
Open

[Snyk] Security upgrade @modelcontextprotocol/sdk from 1.5.0 to 1.25.2#17
SMSDAO wants to merge 1 commit intomainfrom
snyk-fix-06411ed5fbe38b6162c14f64c3480684

Conversation

@SMSDAO
Copy link
Owner

@SMSDAO SMSDAO commented Jan 10, 2026

snyk-top-banner

Snyk has created this PR to fix 1 vulnerabilities in the pnpm dependencies of this project.

Snyk changed the following file(s):

  • examples/agent-kit-mcp-server/package.json
  • examples/agent-kit-mcp-server/pnpm-lock.yaml

Vulnerabilities that will be fixed with an upgrade:

Issue Score
high severity Regular Expression Denial of Service (ReDoS)
SNYK-JS-MODELCONTEXTPROTOCOLSDK-14871802
  828  

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • Max score is 1000. Note that the real score may have changed since the PR was raised.
  • This PR was automatically created by Snyk using the credentials of a real user.

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:

🦉 Regular Expression Denial of Service (ReDoS)

…mcp-server/pnpm-lock.yaml to reduce vulnerabilities

The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-JS-MODELCONTEXTPROTOCOLSDK-14871802
Copilot AI review requested due to automatic review settings January 10, 2026 05:27
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the @modelcontextprotocol/sdk dependency from version 1.5.0 to 1.25.2 to address a high-severity Regular Expression Denial of Service (ReDoS) vulnerability (SNYK-JS-MODELCONTEXTPROTOCOLSDK-14871802) with a priority score of 828.

Changes:

  • Upgrades @modelcontextprotocol/sdk from ^1.5.0 to ^1.25.2 in package.json
  • Updates pnpm-lock.yaml to reflect the new SDK version and its transitive dependencies

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
examples/agent-kit-mcp-server/package.json Updates the @modelcontextprotocol/sdk version specification to ^1.25.2
examples/agent-kit-mcp-server/pnpm-lock.yaml Reflects the dependency resolution with the new SDK version and adds numerous transitive dependencies including express 5.2.1, hono 4.11.3, ajv, jose, and others
Files not reviewed (1)
  • examples/agent-kit-mcp-server/pnpm-lock.yaml: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"@modelcontextprotocol/sdk": "^1.25.2",
"dotenv": "^16.4.7",
"solana-agent-kit": "1.4.8",
"zod": "^3.24.2"
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upgraded @modelcontextprotocol/sdk version 1.25.2 specifies a peer dependency of zod ^3.25 || ^4.0, but the project is using zod 3.24.2. While pnpm has allowed the installation, this version mismatch could lead to compatibility issues or unexpected behavior. Consider upgrading zod to at least version 3.25.0 to meet the SDK's peer dependency requirements.

Suggested change
"zod": "^3.24.2"
"zod": "^3.25.0"

Copilot uses AI. Check for mistakes.
Copy link
Owner Author

@SMSDAO SMSDAO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/terminal scan

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.

3 participants