Skip to content

fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security]#103

Merged
loonghao merged 1 commit intomainfrom
renovate/npm-modelcontextprotocol-sdk-vulnerability
Mar 31, 2026
Merged

fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security]#103
loonghao merged 1 commit intomainfrom
renovate/npm-modelcontextprotocol-sdk-vulnerability

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Dec 2, 2025

ℹ️ Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

Package Change Age Confidence
@modelcontextprotocol/sdk (source) ^0.5.0^1.25.2 age confidence

GitHub Vulnerability Alerts

CVE-2025-66414

The Model Context Protocol (MCP) TypeScript 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 with StreamableHTTPServerTransport or SSEServerTransport and has not enabled enableDnsRebindingProtection, 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 createMcpExpressApp() now have this protection enabled by default when binding to localhost. Users with custom Express configurations are advised to update to version 1.24.0 and apply the exported hostHeaderValidation() middleware when running an unauthenticated server on localhost.

CVE-2026-0621

Impact

A ReDoS vulnerability in the UriTemplate class allows attackers to cause denial of service. The partToRegExp() function generates a regex pattern with nested quantifiers (([^/]+(?:,[^/]+)*)) for exploded template variables (e.g., {/id*}, {?tags*}), causing catastrophic backtracking on malicious input.

Who is affected: MCP servers that register resource templates with exploded array patterns and accept requests from untrusted clients.

Attack result: An attacker sends a crafted URI via resources/read request, causing 100% CPU utilization, server hang/crash, and denial of service for all clients.

Affected Versions

All versions of @modelcontextprotocol/sdk prior to the patched release.

Patches

v1.25.2 contains b392f02ffcf37c088dbd114fedf25026ec3913d3 the fix modifies the regex pattern to prevent backtracking.

Workarounds

  • Avoid using exploded patterns ({/id*}, {?tags*}) in resource templates
  • Implement request timeouts and rate limiting
  • Validate URIs before processing to reject suspicious patterns

Release Notes

modelcontextprotocol/typescript-sdk (@​modelcontextprotocol/sdk)

v1.25.2

Compare Source

What's Changed

New Contributors

Full Changelog: modelcontextprotocol/typescript-sdk@1.25.1...v1.25.2

v1.25.1

Compare Source

What's Changed

Full Changelog: modelcontextprotocol/typescript-sdk@1.25.0...1.25.1

v1.25.0

Compare Source

What's Changed

New Contributors

Full Changelog: modelcontextprotocol/typescript-sdk@1.24.3...1.25.0

v1.24.3

Compare Source

What's Changed

Full Changelog: modelcontextprotocol/typescript-sdk@1.24.2...1.24.3

v1.24.2

Compare Source

What's Changed
New Contributors

Full Changelog: modelcontextprotocol/typescript-sdk@1.24.1...1.24.2

v1.24.1

Compare Source

What's Changed

New Contributors

Full Changelog: modelcontextprotocol/typescript-sdk@1.24.0...1.24.1

v1.24.0

Compare 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

New Contributors

Full Changelog: modelcontextprotocol/typescript-sdk@1.23.0...1.24.0

v1.23.1

Compare Source

Fixed:

  • Disabled SSE priming events to fix backwards compatibility - 1.23.x clients crash on empty SSE data (JSON.parse(""))

This is a patch for servers still on 1.23.x that were breaking clients not handling the the 2025-11-25 priming event behavior with empty SSE data fields. See #​1233 for more details.

Full Changelog: modelcontextprotocol/typescript-sdk@1.23.0...1.23.1

v1.23.0

Compare Source

What's Changed

New Contributors

Full Changelog: modelcontextprotocol/typescript-sdk@1.22.0...1.23.0

v1.22.0

Compare Source

What's Changed

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 7.92%. Comparing base (676baf1) to head (7933751).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff            @@
##            main    #103      +/-   ##
========================================
- Coverage   8.12%   7.92%   -0.20%     
========================================
  Files         45      45              
  Lines       9977    7768    -2209     
========================================
- Hits         811     616     -195     
+ Misses      9093    7079    -2014     
  Partials      73      73              
Flag Coverage Δ
go 7.92% <ø> (-0.20%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 44 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Dec 3, 2025
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch 2 times, most recently from f4e212d to dc706dc Compare December 3, 2025 21:06
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Dec 3, 2025
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Dec 10, 2025
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch 2 times, most recently from e506ee0 to 15eafdb Compare December 10, 2025 18:09
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Dec 10, 2025
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Dec 15, 2025
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch 2 times, most recently from eb46f49 to 6b3a820 Compare December 15, 2025 21:30
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Dec 15, 2025
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Dec 30, 2025
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch 2 times, most recently from bbc074e to d3b9071 Compare December 30, 2025 17:25
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Dec 30, 2025
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from d3b9071 to 9cdbdf9 Compare December 31, 2025 14:57
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Dec 31, 2025
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from 9cdbdf9 to 7c0c85e Compare December 31, 2025 20:47
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Dec 31, 2025
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from 7c0c85e to db921af Compare January 7, 2026 16:46
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Jan 8, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch 2 times, most recently from 520b6e7 to c5fc30a Compare January 8, 2026 21:56
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Jan 8, 2026
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Jan 19, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch 2 times, most recently from a06edf2 to 5744567 Compare January 19, 2026 22:38
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Jan 19, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from d4006b9 to 19c6fb1 Compare February 17, 2026 20:32
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Feb 17, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from 19c6fb1 to 0c810d5 Compare February 18, 2026 01:03
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Feb 18, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from 0c810d5 to d081d42 Compare February 24, 2026 14:13
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Feb 24, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from d081d42 to d25b00e Compare February 24, 2026 19:13
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Feb 24, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from d25b00e to d07ad6c Compare February 25, 2026 12:57
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Feb 25, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from d07ad6c to 756de8c Compare February 25, 2026 19:04
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Feb 25, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from 756de8c to 6862847 Compare February 27, 2026 13:28
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Feb 27, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from 6862847 to fa6de5c Compare February 27, 2026 17:07
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Feb 27, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from fa6de5c to b46b78a Compare March 5, 2026 09:56
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Mar 5, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch from b46b78a to a307e8c Compare March 5, 2026 19:14
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Mar 5, 2026
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Mar 13, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch 2 times, most recently from 9e2d99a to 74580e1 Compare March 13, 2026 21:36
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Mar 13, 2026
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] Mar 26, 2026
@renovate renovate bot force-pushed the renovate/npm-modelcontextprotocol-sdk-vulnerability branch 2 times, most recently from ed3f680 to 56597ba Compare March 26, 2026 21:11
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to ^0.7.0 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] Mar 26, 2026
@renovate renovate bot changed the title fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] fix(deps): update dependency @modelcontextprotocol/sdk to v1 [security] - autoclosed Mar 27, 2026
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.

1 participant