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-53366

CVE-2025-53366: MCP Python SDK DoS Vulnerability

CVE-2025-53366 is a denial of service flaw in the MCP Python SDK that causes unhandled exceptions from malformed requests, leading to service unavailability. This article covers technical details, affected versions, and patches.

Updated: May 19, 2026

CVE-2025-53366 Overview

CVE-2025-53366 affects the Model Context Protocol (MCP) Python SDK, distributed as the mcp package on PyPI. A validation error in versions prior to 1.9.4 triggers an unhandled exception when the server processes malformed requests. The unhandled exception causes the MCP service to return HTTP 500 errors and remain unavailable until an operator manually restarts the process. The flaw is categorized under [CWE-248] Uncaught Exception. Remote attackers can send crafted requests over the network without authentication or user interaction. Version 1.9.4 of the mcp package contains the official fix.

Critical Impact

Unauthenticated remote attackers can force MCP Python SDK servers offline by submitting malformed requests, requiring manual restart to restore availability.

Affected Products

  • MCP Python SDK (mcp on PyPI) versions prior to 1.9.4
  • Applications embedding the Model Context Protocol Python SDK as a server component
  • Deployments without infrastructure-level resilience such as auto-restart or health-check recovery

Discovery Timeline

  • 2025-07-04 - CVE-2025-53366 published to the National Vulnerability Database
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-53366

Vulnerability Analysis

The MCP Python SDK provides server and client primitives for the Model Context Protocol, which standardizes how large language model (LLM) applications exchange context. The server-side session handler in src/mcp/shared/session.py processes incoming JSON-RPC messages and dispatches them based on type. When a request fails Pydantic validation, the SDK previously raised an exception that propagated up the call stack without being caught by the session loop. The unhandled exception terminates the request-handling task and prevents the server from responding to subsequent traffic, producing HTTP 500 responses. Because the MCP server holds long-lived connections, a single malformed request can disrupt service for all connected clients. Operators must manually restart the affected process to restore functionality.

Root Cause

The root cause is missing exception handling around request validation in the shared session module. The SDK did not translate Pydantic ValidationError failures into structured JSON-RPC error responses such as INVALID_PARAMS. Instead, the exception bubbled out of the message dispatch loop and stopped the worker.

Attack Vector

An unauthenticated remote attacker sends a malformed MCP request to a publicly reachable server endpoint. The request must fail schema validation in a way that triggers the uncaught path. No privileges, user interaction, or prior knowledge of the deployment are required.

python
# Patch excerpt from src/mcp/shared/session.py
 from mcp.shared.message import MessageMetadata, ServerMessageMetadata, SessionMessage
 from mcp.types import (
     CONNECTION_CLOSED,
+    INVALID_PARAMS,
     CancelledNotification,
     ClientNotification,
     ClientRequest,

Source: GitHub Commit 29c69e6. The fix imports the INVALID_PARAMS error code and returns a proper JSON-RPC error to the client instead of allowing the exception to crash the session.

Detection Methods for CVE-2025-53366

Indicators of Compromise

  • Repeated HTTP 500 responses from MCP server endpoints following malformed JSON-RPC payloads
  • MCP server processes that stop accepting new requests without crashing or exiting
  • Python tracebacks in application logs referencing pydantic.ValidationError from mcp/shared/session.py
  • Unexpected service restarts of MCP-based applications recorded by orchestrators or process managers

Detection Strategies

  • Inspect application logs for unhandled ValidationError exceptions originating in the mcp package on PyPI versions below 1.9.4
  • Monitor the ratio of HTTP 500 responses to total requests on MCP endpoints and alert on sudden spikes
  • Use software composition analysis to flag any deployed service that imports mcp at a version prior to 1.9.4

Monitoring Recommendations

  • Configure liveness and readiness probes that detect frozen MCP worker tasks, not just process existence
  • Aggregate JSON-RPC error responses by method name and source IP to surface probing behavior
  • Track restart counts for MCP service containers and alert when restart frequency exceeds baseline

How to Mitigate CVE-2025-53366

Immediate Actions Required

  • Upgrade the mcp PyPI package to version 1.9.4 or later across all environments hosting an MCP server
  • Audit deployments to identify services that import the MCP Python SDK and confirm their pinned versions
  • Restrict network exposure of MCP server endpoints to trusted clients while patching is in progress

Patch Information

The fix is published in mcp version 1.9.4 on PyPI. Technical details are available in GitHub Pull Request #822, the commit 29c69e6, and GitHub Security Advisory GHSA-3qhf-m339-9g5v. The patch catches validation errors and returns the INVALID_PARAMS JSON-RPC error instead of allowing the exception to escape the session loop.

Workarounds

  • Run MCP servers under a supervisor such as systemd, supervisord, or Kubernetes with automatic restart on failure
  • Place a reverse proxy or API gateway in front of MCP endpoints to filter requests that do not conform to expected schemas
  • Apply rate limiting on MCP endpoints to slow repeated malformed-request attempts from a single source
bash
# Upgrade the MCP Python SDK to a patched version
pip install --upgrade "mcp>=1.9.4"

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

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMcp

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/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
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-248
  • Technical References
  • GitHub Commit Changes

  • GitHub Pull Request #822

  • GitHub Security Advisory GHSA-3qhf-m339-9g5v
  • Related CVEs
  • CVE-2025-53365: MCP Python SDK DoS Vulnerability

  • CVE-2026-7211: dvladimirov MCP Command Injection RCE Flaw

  • CVE-2026-27735: MCP Server Git Path Traversal Flaw

  • CVE-2026-25905: mcp-run-python RCE 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