7.6high
DNS Rebinding Protection Disabled by Default in Model Context Protocol TypeScript SDK for Servers Running on Localhost
- Severity
- 7.6high CVSS:4.0 by GitHub_M
- Exploit likelihood
- 0.54% (higher than 47% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-w48q-cv73-mx4w
Description
MCP TypeScript SDK is the official TypeScript SDK for Model Context Protocol servers and clients. Prior to 1.24.0, The Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default for HTTP-based servers. When an HTTP-based MCP server is run on localhost without authentication with StreamableHTTPServerTransport or SSEServerTransport and has not enabled enableDnsRebindingProtection, a malicious website could exploit DNS rebinding to bypass same-origin policy restrictions and send requests to the local MCP server. This could allow an attacker to invoke tools or access resources exposed by the MCP server on behalf of the user in those limited circumstances. Note that running HTTP-based MCP servers locally without authentication is not recommended per MCP security best practices. This issue does not affect servers using stdio transport. This vulnerability is fixed in 1.24.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| modelcontextprotocol typescript-sdk | < 1.24.0 | CVE List |
| @modelcontextprotocol/sdk (npm) | before 1.24.0 | GitHub Advisory Database |
| lfprojects mcp_typescript_sdk | before 1.24.0 | NVD |
All scores
| GitHub_M | 7.6high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N |
Classification
What each source says
CVE List
MCP TypeScript SDK is the official TypeScript SDK for Model Context Protocol servers and clients. Prior to 1.24.0, The Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default for HTTP-based servers. When an HTTP-based MCP server is run on localhost without authentication with StreamableHTTPServerTransport or SSEServerTransport and has not enabled enableDnsRebindingProtection, a malicious website could exploit DNS rebinding to bypass same-origin policy restrictions and send requests to the local MCP server. This could allow an attacker to invoke tools or access resources exposed by the MCP server on behalf of the user in those limited circumstances. Note that running HTTP-based MCP servers locally without authentication is not recommended per MCP security best practices. This issue does not affect servers using stdio transport. This vulnerability is fixed in 1.24.0.
GitHub Advisory Database
The Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default for HTTP-based servers. When an HTTP-based MCP server is run on localhost without authentication with StreamableHTTPServerTransport or SSEServerTransport and has not enabled enableDnsRebindingProtection, a malicious website could exploit DNS rebinding to bypass same-origin policy restrictions and send requests to the local MCP server. This could allow an attacker to invoke tools or access resources exposed by the MCP server on behalf of the user in those limited circumstances.
Note that running HTTP-based MCP servers locally without authentication is not recommended per MCP security best practices. This issue does not affect servers using stdio transport.
Servers created via createMcpExpressApp() now have this protection enabled by default when binding to localhost. Users with custom Express configurations are advised to update to version 1.24.0 and apply the exported hostHeaderValidation() middleware when running an unauthenticated server on localhost.
NVD (es)
El SDK de TypeScript de MCP es el SDK oficial de TypeScript para servidores y clientes del Protocolo de Contexto de Modelo. Versiones anteriores a 1.24.0, el SDK de TypeScript del Protocolo de Contexto de Modelo (MCP) no habilita la protección contra el reencadenamiento de DNS por defecto para los servidores basados en HTTP. Cuando un servidor MCP basado en HTTP se ejecuta en localhost sin autenticación con StreamableHTTPServerTransport o SSEServerTransport y no ha habilitado enableDnsRebindingProtection, un sitio web malicioso podría explotar el reencadenamiento de DNS para eludir las restricciones de la política del mismo origen y enviar solicitudes al servidor MCP local. Esto podría permitir a un atacante invocar herramientas o acceder a recursos expuestos por el servidor MCP en nombre del usuario en esas circunstancias limitadas. Tenga en cuenta que ejecutar servidores MCP basados en HTTP localmente sin autenticación no se recomienda según las mejores prácticas de seguridad de MCP. Este problema no afecta a los servidores que utilizan el transporte stdio. Esta vulnerabilidad se corrige en la versión 1.24.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-66414 changed 2025-12-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w48q-cv73-mx4w changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-66414 changed 2026-10-18 | Public domain |