Skip to main content
VulnerabilityPublished

CVE-2025-66414: @modelcontextprotocol/sdk · Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default

Affects @modelcontextprotocol/sdkSource GCVE Database

0
Compare
Authoritative record:CVE-2025-66414· High 7.6

Not known to be exploited · CVSS 7.6 High : upgrade to 1.24.0 soon.

Data as of 22 Nov 2026, 02:52 UTC

CVSS 4.0 base score
7.6High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.07.6
Patch
Available – fixed in 1.24.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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Dec 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 21 Nov 2026.

What to do

Upgrade @modelcontextprotocol/sdk to 1.24.0.

Affected software

ProductAffectedFixed in
npm@modelcontextprotocol/sdkAffected
  • <1.24.0
Fixed in
  • 1.24.0

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available in MCP SDK version 1.24.0, which enables DNS rebinding protection by default when binding to localhost. Users should upgrade to version 1.24.0 or later. For custom Express server configurations, users should apply the exported `hostHeaderValidation()` middleware when running unauthenticated servers on localhost. Running HTTP-based MCP servers locally without authentication is not recommended per MCP security best practices.

Description

The Model Context Protocol (MCP) TypeScript SDK versions prior to 1.24.0 do not enable DNS rebinding protection by default for HTTP-based servers running on localhost without authentication. This vulnerability allows a malicious website to exploit DNS rebinding to bypass same-origin policy restrictions and send unauthorized requests to the local MCP server, potentially invoking tools or accessing exposed resources. The issue does not affect servers using stdio transport. Version 1.24.0 and later enable DNS rebinding protection by default when binding to localhost.

References

Community reviews

Loading reviews…