Skip to content

[Snyk] Security upgrade @modelcontextprotocol/sdk from 1.9.0 to 1.25.2#50

Open
omercnet wants to merge 1 commit intomainfrom
snyk-fix-095fc632b630851c44fabf6118bc1f45
Open

[Snyk] Security upgrade @modelcontextprotocol/sdk from 1.9.0 to 1.25.2#50
omercnet wants to merge 1 commit intomainfrom
snyk-fix-095fc632b630851c44fabf6118bc1f45

Conversation

@omercnet
Copy link
Member

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/brave-search-mcp-server/package.json
  • examples/brave-search-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)

…earch-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 10:34
@vercel
Copy link
Contributor

vercel bot commented Jan 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
ai Ready Ready Preview, Comment Jan 10, 2026 10:35am
nextjs-descope-mcp-server Ready Ready Preview, Comment Jan 10, 2026 10:35am

@netlify
Copy link

netlify bot commented Jan 10, 2026

Deploy Preview for express-mcp-server canceled.

Name Link
🔨 Latest commit 0d3289c
🔍 Latest deploy log https://app.netlify.com/projects/express-mcp-server/deploys/69622b511dc31d00087b64d4

@netlify
Copy link

netlify bot commented Jan 10, 2026

Deploy Preview for mcp-example-oauth canceled.

Name Link
🔨 Latest commit 0d3289c
🔍 Latest deploy log https://app.netlify.com/projects/mcp-example-oauth/deploys/69622b51ae77020008f4110d

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jan 10, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
remote-mcp-server-bearer-auth 0d3289c Jan 10 2026, 10:35 AM

Copy link
Contributor

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 @modelcontextprotocol/sdk from version 1.9.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:

  • Updated @modelcontextprotocol/sdk dependency from ^1.7.0 to ^1.25.2 in package.json
  • Updated pnpm lockfile with new dependency resolutions including new transitive dependencies (ajv, ajv-formats, @hono/node-server, jose 6.1.3, json-schema-typed, and others)

Reviewed changes

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

File Description
examples/brave-search-mcp-server/package.json Updates SDK dependency specifier to fix security vulnerability
examples/brave-search-mcp-server/pnpm-lock.yaml Resolves updated dependencies and adds new transitive dependencies required by SDK v1.25.2
Files not reviewed (1)
  • examples/brave-search-mcp-server/pnpm-lock.yaml: Language not supported

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

"dependencies": {
"@cloudflare/workers-oauth-provider": "^0.0.2",
"@modelcontextprotocol/sdk": "^1.7.0",
"@modelcontextprotocol/sdk": "^1.25.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 requires zod ^3.25 or ^4.0 as a peer dependency, but the project currently has zod@3.24.2 installed. This version does not satisfy the ^3.25 requirement. While pnpm has resolved this, it will likely generate peer dependency warnings during installation. Consider updating the zod dependency to at least version 3.25.0 to ensure compatibility.

Copilot uses AI. Check for mistakes.
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