CVE-2026-0621
Description
Anthropic's MCP TypeScript SDK versions up to and including 1.25.1 contain a regular expression denial of service (ReDoS) vulnerability in the UriTemplate class when processing RFC 6570 exploded array patterns. The dynamically generated regular expression used during URI matching contains nested quantifiers that can trigger catastrophic backtracking on specially crafted inputs, resulting in excessive CPU consumption. An attacker can exploit this by supplying a malicious URI that causes the Node.js process to become unresponsive, leading to a denial of service.
How to fix
- @modelcontextprotocol/sdk1.25.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| lfprojects mcp_typescript_sdk | v ≤ 1.25.1 | — |
| @modelcontextprotocol/sdknpm | 1.3.0 ≤ v < 1.25.2 | 1.25.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.