{"id":"CVE-2025-66414","aliases":["CVE-2025-66414","GHSA-w48q-cv73-mx4w"],"related":[],"kind":"vulnerability","state":"published","title":"DNS Rebinding Protection Disabled by Default in Model Context Protocol TypeScript SDK for Servers Running on Localhost","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nNote 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.\n\nServers 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-12-02T16:51:57.000Z","modified":"2026-10-18T18:10:00.100Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.6,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"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","score":7.6,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-350","CWE-1188"],"affected":[{"ranges":[{"version":"< 1.24.0","status":"affected"}],"vendor":"modelcontextprotocol","product":"typescript-sdk","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.24.0"}],"ecosystem":"npm","package":"@modelcontextprotocol/sdk","purl":"pkg:npm/%40modelcontextprotocol/sdk","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.24.0"}],"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/security/advisories/GHSA-w48q-cv73-mx4w","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/modelcontextprotocol/typescript-sdk/commit/09623e2aa5044f9e9da62c73d820a8250b9d97ed","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66414","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/modelcontextprotocol/typescript-sdk/pull/1205","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/modelcontextprotocol/typescript-sdk/commit/608360047dc6899f1cf4f0226eb62fe7b11b3898","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/modelcontextprotocol/typescript-sdk","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-12-02T18:42:32.031Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-66414","url":"https://www.cve.org/CVERecord?id=CVE-2025-66414","licence":"CVE Terms of Use","modified":"2025-12-02T18:46:02.374Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w48q-cv73-mx4w","url":"https://github.com/advisories/GHSA-w48q-cv73-mx4w","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:54.319Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-66414","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-66414","licence":"Public domain","modified":"2026-10-18T18:10:00.100Z"}],"updatedAt":"2026-11-25T22:59:08.208Z","epss":{"score":0.00544,"percentile":0.47047,"date":"2026-12-01T12:00:22.000Z"}}