{"id":"CVE-2026-0621","aliases":["CVE-2026-0621","GHSA-8r9q-7v3j-jr4g"],"related":[],"kind":"vulnerability","state":"published","title":"MCP TypeScript SDK UriTemplate Exploded Array Pattern ReDoS","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nA ReDoS vulnerability in the `UriTemplate` class allows attackers to cause denial of service. The `partToRegExp()` function generates a regex pattern with nested quantifiers (`([^/]+(?:,[^/]+)*)`) for exploded template variables (e.g., `{/id*}`, `{?tags*}`), causing catastrophic backtracking on malicious input.\n\n**Who is affected:** MCP servers that register resource templates with exploded array patterns and accept requests from untrusted clients.\n\n**Attack result:** An attacker sends a crafted URI via `resources/read` request, causing 100% CPU utilization, server hang/crash, and denial of service for all clients.\n\n### Affected Versions\n\nAll versions of `@modelcontextprotocol/sdk` prior to the patched release.\n\n### Patches\n\nv1.25.2 contains b392f02ffcf37c088dbd114fedf25026ec3913d3 the fix modifies the regex pattern to prevent backtracking.\n\n### Workarounds\n\n- Avoid using exploded patterns (`{/id*}`, `{?tags*}`) in resource templates\n- Implement request timeouts and rate limiting\n- Validate URIs before processing to reject suspicious patterns","format":"markdown","source":"ghsa"},{"lang":"es","text":"Las versiones del SDK de TypeScript MCP de Anthropic hasta la 1.25.1 inclusive contienen una vulnerabilidad de denegación de servicio por expresión regular (ReDoS) en la clase UriTemplate al procesar patrones de array expandidos de RFC 6570. La expresión regular generada dinámicamente utilizada durante la coincidencia de URI contiene cuantificadores anidados que pueden desencadenar un retroceso catastrófico en entradas especialmente diseñadas, lo que resulta en un consumo excesivo de CPU. Un atacante puede explotar esto al proporcionar una URI maliciosa que hace que el proceso de Node.js deje de responder, lo que lleva a una denegación de servicio.","source":"nvd"}],"published":"2026-01-05T20:57:14.515Z","modified":"2026-10-26T21:10:00.170Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"type":"semver","introduced":"0","lastAffected":"1.25.1","status":"affected"}],"vendor":"Anthropic","product":"MCP TypeScript SDK","repo":"https://github.com/modelcontextprotocol/typescript-sdk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.3.0","status":"affected","fixed":"1.25.2"}],"ecosystem":"npm","package":"@modelcontextprotocol/sdk","purl":"pkg:npm/%40modelcontextprotocol/sdk","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"1.25.1"}],"vendor":"lfprojects","product":"mcp_typescript_sdk","cpe":"cpe:2.3:a:lfprojects:mcp_typescript_sdk:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/modelcontextprotocol/typescript-sdk/issues/965","tags":["exploit","issue-tracking","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://www.vulncheck.com/advisories/mcp-typescript-sdk-uritemplate-exploded-array-pattern-redos","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/modelcontextprotocol/typescript-sdk/security/advisories/GHSA-cqwc-fm46-7fff","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-0621","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/modelcontextprotocol/typescript-sdk/commit/7f0cf730","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/modelcontextprotocol/typescript-sdk/commit/b392f02ffcf37c088dbd114fedf25026ec3913d3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/modelcontextprotocol/typescript-sdk","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/modelcontextprotocol/typescript-sdk/releases/tag/v1.25.2","tags":["web"],"sources":["ghsa"]}],"credits":["Weblover"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-01-05T21:07:47.543Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-0621","url":"https://www.cve.org/CVERecord?id=CVE-2026-0621","licence":"CVE Terms of Use","modified":"2026-10-08T15:21:41.470Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8r9q-7v3j-jr4g","url":"https://github.com/advisories/GHSA-8r9q-7v3j-jr4g","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:59.009Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-0621","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-0621","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:12.609Z","epss":{"score":0.00438,"percentile":0.39835,"date":"2026-12-01T12:00:22.000Z"}}