Inefficient regular expression complexity in typescript-sdk - CVE-2026-0621
Published: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated remote attacker to deny service to all clients of affected MCP servers.
The vulnerability exists due to catastrophic regular expression backtracking in the TypeScript SDK's UriTemplate class when matching crafted URIs against registered resource templates with exploded array patterns. An unauthenticated remote attacker can send a crafted URI through a resources/read request to exhaust CPU resources and hang or crash the server.