
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-66414 is a DNS rebinding protection misconfiguration vulnerability in the Model Context Protocol (MCP) TypeScript SDK (@modelcontextprotocol/sdk) that allows malicious websites to bypass same-origin policy restrictions and interact with locally running MCP servers. All versions of the npm package prior to 1.24.0 are affected when using StreamableHTTPServerTransport or SSEServerTransport without authentication and without explicitly enabling enableDnsRebindingProtection. The vulnerability was published on December 2, 2025, with a patch released the same day. It carries a CVSS v3.1 score of 8.1 (High) and a CVSS v4.0 score of 7.6 (High) (Github Advisory, GitHub Security Advisory).
The root cause is classified as CWE-1188 (Insecure Default Initialization of Resource) and CWE-350 (Reliance on Reverse DNS Resolution for a Security-Critical Action): the SDK's HTTP-based server transports did not enable DNS rebinding protection by default, leaving the enableDnsRebindingProtection option opt-in rather than opt-out (Github Advisory). In a DNS rebinding attack, a malicious website tricks the victim's browser into resolving the attacker's domain to 127.0.0.1, then uses JavaScript to send cross-origin requests to the local MCP server — effectively bypassing the browser's same-origin policy. The vulnerable code path existed in validateRequestHeaders() within both streamableHttp.ts and sse.ts, where the original condition if (!originHeader || !this._allowedOrigins.includes(originHeader)) incorrectly rejected requests without an Origin header (non-browser clients) while also failing to enforce protection against browser-originated DNS rebinding requests by default (GitHub PR #1205). The fix changed the condition to if (originHeader && !this._allowedOrigins.includes(originHeader)), ensuring only requests with an invalid Origin header are rejected, and enabled protection by default in createMcpExpressApp() (GitHub Commit).
Successful exploitation allows a remote attacker — via a malicious website visited by the victim — to invoke any tools or access any resources exposed by the locally running MCP server, without authentication. This results in high confidentiality and integrity impact against the vulnerable system, as the attacker can read sensitive data accessible to the MCP server and trigger unauthorized actions or tool invocations on the user's behalf. Availability is not directly impacted. The scope is limited to scenarios where an HTTP-based MCP server is running on localhost without authentication, which, while not recommended by MCP security best practices, may occur in developer or local AI assistant environments (Github Advisory).
No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2025-66414. The EPSS score is approximately 0.052% (17th percentile), indicating a low near-term exploitation probability (Github Advisory). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Exploitation requires user interaction (the victim must visit a malicious website while running a vulnerable local MCP server without authentication), limiting the attack surface. No threat actor attribution has been identified.
StreamableHTTPServerTransport or SSEServerTransport) on a default port (commonly 3000 or similar) without authentication, using SDK versions prior to 1.24.0.127.0.0.1 (localhost). The browser's DNS cache expires and re-resolves the domain to localhost.http://localhost:<port>/) originating from browser processes with an Origin header pointing to an unfamiliar external domain; outbound connections from the local machine to unknown external IPs shortly after MCP tool invocations.Origin headers from domains not associated with legitimate local development (e.g., Origin: http://attacker-domain.com); repeated MCP tool invocation log entries not initiated by the local user.127.0.0.1 on the MCP server port outside of normal developer activity.The primary remediation is to upgrade the @modelcontextprotocol/sdk npm package to version 1.24.0 or later, which enables DNS rebinding protection by default for servers created via createMcpExpressApp() when binding to localhost (Github Advisory). Users with custom Express configurations should update to 1.24.0 and apply the exported hostHeaderValidation() middleware to their unauthenticated localhost servers. As a general best practice, avoid running HTTP-based MCP servers locally without authentication; prefer stdio transport for local use cases, which is not affected by this vulnerability. If immediate upgrade is not possible, manually enable enableDnsRebindingProtection: true and configure allowedOrigins in the transport options as a temporary workaround (GitHub Security Advisory).
The vulnerability was credited to researcher JLLeitschuh and published by maintainer pcarleton on December 2, 2025, the same day the patch was released, indicating a coordinated disclosure process (GitHub Security Advisory). The fix was contributed by community member jacopoc via pull request #1205, reflecting active community engagement in MCP security. Red Hat also tracked the vulnerability, indicating broader ecosystem awareness (Feedly). No significant social media controversy or major media coverage has been identified beyond standard vulnerability database entries.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."