The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-66416

CVE-2025-66416: MCP Python SDK Auth Bypass Vulnerability

CVE-2025-66416 is an authentication bypass vulnerability in the MCP Python SDK that allows DNS rebinding attacks on localhost HTTP servers. This article covers the technical details, affected versions, and mitigation steps.

Updated: May 19, 2026

CVE-2025-66416 Overview

CVE-2025-66416 affects the Model Context Protocol (MCP) Python SDK, distributed as mcp on PyPI. Versions prior to 1.23.0 do not enable DNS rebinding protection by default for HTTP-based servers. When an MCP server runs on localhost without authentication using FastMCP with streamable HTTP or Server-Sent Events (SSE) transport, a malicious website can exploit DNS rebinding to bypass same-origin policy restrictions. Attackers can invoke tools or access resources exposed by the local MCP server on behalf of the user. Servers using stdio transport are not affected. The issue is fixed in version 1.23.0.

Critical Impact

A malicious website visited by a user can bypass browser same-origin policy via DNS rebinding and issue requests to a local unauthenticated MCP server, executing exposed tools and reading exposed resources.

Affected Products

  • mcp Python SDK (PyPI package) prior to version 1.23.0
  • FastMCP servers configured with streamable HTTP transport
  • FastMCP servers configured with SSE transport

Discovery Timeline

  • 2025-12-02 - CVE-2025-66416 published to NVD
  • 2026-03-10 - Last updated in NVD database

Technical Details for CVE-2025-66416

Vulnerability Analysis

The vulnerability is categorized under [CWE-1188] (Insecure Default Initialization of Resource). The MCP Python SDK ships HTTP-based transports with DNS rebinding protection disabled by default. When developers run FastMCP servers locally without setting TransportSecuritySettings, the server accepts requests regardless of the Host or Origin header values used to reach it.

DNS rebinding allows an attacker-controlled domain to resolve first to a public IP and then re-resolve to 127.0.0.1. After the rebind, browser JavaScript loaded from the attacker domain treats the local MCP server as same-origin and issues authenticated cross-origin requests. The local server, lacking host/origin validation, executes the requests and exposes its registered tools and resources.

Root Cause

The root cause is an insecure default configuration in the FastMCP server initialization path. The constructor accepted transport_security=None and proceeded without injecting rebinding defenses for loopback bindings. No validation of inbound Host or Origin headers occurred when the developer did not explicitly configure TransportSecuritySettings.

Attack Vector

The attack requires the victim to visit an attacker-controlled web page while a vulnerable MCP server runs on localhost. The page hosts JavaScript that issues fetch requests to a domain the attacker controls. After DNS rebinding to 127.0.0.1, the script invokes the MCP JSON-RPC endpoint and calls exposed tools or reads resources within the user's context.

python
        auth: AuthSettings | None = None,
        transport_security: TransportSecuritySettings | None = None,
    ):
+       # Auto-enable DNS rebinding protection for localhost (IPv4 and IPv6)
+       if transport_security is None and host in ("127.0.0.1", "localhost", "::1"):
+           transport_security = TransportSecuritySettings(
+               enable_dns_rebinding_protection=True,
+               allowed_hosts=["127.0.0.1:*", "localhost:*", "[::1]:*"],
+               allowed_origins=["http://127.0.0.1:*", "http://localhost:*", "http://[::1]:*"],
+           )
+
        self.settings = Settings(
            debug=debug,
            log_level=log_level,

Source: GitHub Commit d3a1841 — the patch auto-enables DNS rebinding protection when the server binds to a loopback address and the developer has not supplied explicit transport settings.

Detection Methods for CVE-2025-66416

Indicators of Compromise

  • Inbound HTTP requests to a local MCP server carrying a Host header that does not match 127.0.0.1, localhost, or [::1].
  • Origin headers on MCP JSON-RPC requests referencing external domains the user did not intend to integrate.
  • Unexpected MCP tools/call or resources/read invocations originating from browser user-agents.

Detection Strategies

  • Inventory installed Python environments for mcp package versions below 1.23.0 using pip list or SBOM scanners.
  • Review FastMCP server instantiations in source repositories for missing TransportSecuritySettings configuration.
  • Enable application-level logging of inbound Host and Origin headers on HTTP-based MCP servers and alert on non-loopback values.

Monitoring Recommendations

  • Monitor process telemetry on developer workstations for Python processes listening on 127.0.0.1 with MCP transport ports.
  • Capture browser-originated traffic to local loopback ports and flag requests where Origin differs from http://localhost or http://127.0.0.1.
  • Track outbound DNS resolutions that switch from public IPs to private/loopback ranges within short TTL windows.

How to Mitigate CVE-2025-66416

Immediate Actions Required

  • Upgrade the mcp package to version 1.23.0 or later in all Python environments running MCP servers.
  • Audit FastMCP deployments and verify that HTTP and SSE transports are not exposed without authentication.
  • For servers bound to non-loopback interfaces, explicitly configure TransportSecuritySettings with allow-listed hosts and origins.

Patch Information

The fix is delivered in mcp 1.23.0 via commit d3a1841. The patch automatically enables DNS rebinding protection when an HTTP-based MCP server binds to 127.0.0.1, localhost, or ::1 and no explicit TransportSecuritySettings is supplied. See the GitHub Security Advisory GHSA-9h52-p55h-vw2f for advisory details.

Workarounds

  • Switch local MCP servers to stdio transport, which is not affected by this vulnerability.
  • Manually configure TransportSecuritySettings with enable_dns_rebinding_protection=True and explicit allowed_hosts and allowed_origins lists.
  • Add authentication to all HTTP-based MCP servers, even when bound to localhost, per MCP security best practices.
bash
# Upgrade the MCP Python SDK to the patched release
pip install --upgrade "mcp>=1.23.0"

# Verify the installed version
python -c "import mcp, importlib.metadata as m; print(m.version('mcp'))"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeAuth Bypass

  • Vendor/TechMcp Python Sdk

  • SeverityHIGH

  • CVSS Score7.6

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-1188
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-9h52-p55h-vw2f
  • Latest CVEs
  • CVE-2026-43328: Linux Kernel Use-After-Free Vulnerability

  • CVE-2026-43329: Linux Kernel Netfilter DoS Vulnerability

  • CVE-2026-43330: Linux Kernel Buffer Overflow Vulnerability

  • CVE-2026-43331: Linux Kernel DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English