Update @modelcontextprotocol/sdk dependency version #12326
Closed
+1
−1
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.
Summary
The project includes a vulnerable third-party dependency:
@modelcontextprotocol/sdkversion^1.24.0This version is affected by CVE-2026-25536, a race condition vulnerability (CWE-362) that may lead to cross-session data leakage when server or transport instances are reused across concurrent clients.
Affected File
examples/mcp/package.json
Vulnerability Details
According to the official advisory, versions prior to
1.26.0may not properly isolate request state across concurrent clients if server or transport instances are reused.This may introduce a risk of:
Impact Assessment
If the application:
There is potential for improper isolation between requests, which could result in data from one client being exposed to another.
While I have not confirmed active exploitation in the current implementation, the dependency remains in a version known to contain a high-severity race condition vulnerability.
Recommended Remediation
Upgrade to:
@modelcontextprotocol/sdk >= 1.26.0The issue is resolved starting from version 1.26.0.
References
Thank you for reviewing this report. Please let me know if further validation or testing details are required.
Best regards,