fix(deps): bump @modelcontextprotocol/sdk to 1.25.2 (CVE-2026-0621 ReDoS)#140
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
What
Bump
@modelcontextprotocol/sdkfrom1.24.3→1.25.2.Why
@modelcontextprotocol/sdk< 1.25.2 contains a ReDoS vulnerability (CVE-2026-0621) in theUriTemplateclass:partToRegExp()generates a regex with nested quantifiers (([^/]+(?:,[^/]+)*)) for exploded template variables (e.g.{/id*},{?tags*}), causing catastrophic backtracking on craftedresources/readURIs. Patched upstream in v1.25.2 (fix PR).This is the minimal surgical bump to the named patched version (latest is 1.29.0 if maintainers prefer to jump further).
Verification
pnpm typecheck✅pnpm build✅pnpm test✅ (38/38 unit tests)Closes #124
Closes #114