Skip to content
HighVulnerability

CVE-2026-0621: Anthropic MCP TypeScript SDK ReDoS in UriTemplate array pattern matching

Identifier
CVE-2026-0621
Published
Record updated
View JSON
Affected
  • @modelcontextprotocol/sdk >= 1.3.0, < 1.25.2
Fixed in
1.25.2
  • released January 7, 2026, 1 day after disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.4%

Summary

Anthropic's MCP TypeScript SDK, versions up to and including 1.25.1, contains a regular expression denial of service (ReDoS) flaw (CVE-2026-0621) in the UriTemplate class when it processes RFC 6570 exploded array patterns. The dynamically generated regular expression contains nested quantifiers that can cause catastrophic backtracking on crafted input, driving CPU use up. An attacker who supplies a malicious URI can make the Node.js process unresponsive.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.