Skip to content
OpenAdvisories
High · 7.6 CVE-2025-66414 EUVD-2025-200274GHSA-w48q-cv73-mx4w

DNS Rebinding Protection Disabled by Default in Model Context Protocol TypeScript SDK for Servers Running on Localhost

Published Dec 2, 2025 · Updated Dec 2, 2025 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
modelcontextprotocol typescript-sdk < 1.24.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling langfuse-3 +2 3.137.0-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm @modelcontextprotocol/sdk < 1.24.0 1.24.0 GHSA-w48q-cv73-mx4w

References