Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-25904

CVE-2026-25904: Pydantic-AI MCP Run Python SSRF Flaw

CVE-2026-25904 is an SSRF vulnerability in the Pydantic-AI MCP Run Python tool caused by overly permissive Deno sandbox settings. Attackers can exploit this to access localhost and perform SSRF attacks. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 13, 2026

CVE-2026-25904 Overview

CVE-2026-25904 is a Server-Side Request Forgery (SSRF) vulnerability in the Pydantic-AI MCP Run Python tool. The vulnerability exists because the Deno sandbox is configured with an overly permissive configuration that allows the underlying Python code to access the localhost interface of the host system. This misconfiguration enables attackers to perform SSRF attacks, potentially accessing internal services and sensitive resources that should not be reachable from the sandboxed environment.

It is important to note that the mcp-run-python project has been archived and is unlikely to receive a security patch to address this vulnerability.

Critical Impact

Attackers can exploit the overly permissive Deno sandbox configuration to access localhost services on the host machine, potentially compromising internal APIs, metadata services, and other sensitive endpoints that rely on network-level isolation for security.

Affected Products

  • Pydantic-AI mcp-run-python tool
  • Systems running the MCP Run Python tool with default Deno sandbox configuration
  • Applications integrating the archived mcp-run-python project

Discovery Timeline

  • 2026-02-09 - CVE-2026-25904 published to NVD
  • 2026-02-09 - Last updated in NVD database

Technical Details for CVE-2026-25904

Vulnerability Analysis

This vulnerability is classified under CWE-918 (Server-Side Request Forgery). The core issue stems from improper sandbox isolation in the Pydantic-AI MCP Run Python tool. The Deno runtime, which is designed to provide a secure sandbox environment for executing untrusted code, has been configured with permissions that allow network access to the localhost interface.

When Python code executes within this supposedly sandboxed environment, it can make HTTP requests to 127.0.0.1 or localhost endpoints on the host machine. This breaks the fundamental security assumption that sandboxed code cannot interact with local services. The vulnerability requires network access and user interaction to exploit, with some complexity involved in crafting the attack, but successful exploitation can impact confidentiality, integrity, and availability of the target system.

Root Cause

The root cause of CVE-2026-25904 is an overly permissive network configuration in the Deno sandbox initialization. Instead of restricting all localhost access or implementing a strict allowlist of permitted network destinations, the sandbox configuration grants broad network permissions that include access to the host's loopback interface. This design flaw allows code running within the sandbox to bypass intended network isolation boundaries.

Attack Vector

The attack vector for this vulnerability is network-based. An attacker can craft malicious Python code that, when executed within the MCP Run Python tool's Deno sandbox, makes requests to localhost services. Potential attack scenarios include:

  1. Cloud Metadata Service Access: In cloud environments (AWS, GCP, Azure), attackers could access instance metadata services at well-known localhost addresses to steal credentials and sensitive configuration data.

  2. Internal API Exploitation: Requests to internal services listening on localhost that may not have authentication requirements due to the assumption of network-level isolation.

  3. Port Scanning and Service Discovery: Enumerating services running on the host machine to identify further attack opportunities.

  4. Database and Cache Access: Connecting to local database servers (Redis, MongoDB, PostgreSQL) that may be bound to localhost without authentication.

The vulnerability is particularly concerning because sandboxing is often deployed specifically to mitigate such risks when executing untrusted code.

Detection Methods for CVE-2026-25904

Indicators of Compromise

  • Unexpected outbound HTTP/HTTPS requests from Python processes to localhost or 127.0.0.1 addresses
  • Anomalous access patterns to cloud metadata endpoints (e.g., 169.254.169.254)
  • Unusual process behavior from applications using the mcp-run-python tool
  • Log entries showing requests to internal services that should not be accessible from sandboxed environments

Detection Strategies

  • Monitor network traffic from processes associated with Deno and Python sandbox execution for localhost connections
  • Implement application-layer firewalls to detect and block SSRF patterns in requests originating from sandboxed environments
  • Deploy endpoint detection rules that alert on sandbox escape attempts or unexpected network activity from isolated processes
  • Review application logs for evidence of requests to sensitive internal endpoints from the MCP Run Python tool

Monitoring Recommendations

  • Configure network monitoring to alert on any localhost or loopback traffic originating from sandbox processes
  • Implement egress filtering at the host level to restrict network access from sandboxed applications
  • Enable detailed logging for the Deno runtime and Python execution environments to capture all network requests
  • Monitor for access attempts to cloud provider metadata services from unexpected sources

How to Mitigate CVE-2026-25904

Immediate Actions Required

  • Discontinue use of the mcp-run-python tool as the project is archived and will not receive security updates
  • Audit systems for any deployments of the affected tool and assess exposure
  • Implement network-level controls to block sandbox processes from accessing localhost services
  • Migrate to actively maintained alternatives with proper sandbox isolation

Patch Information

The mcp-run-python project has been archived and is unlikely to receive a fix for this vulnerability. Organizations using this tool should prioritize migration to alternative solutions. For more information about this vulnerability, refer to the JFrog Vulnerability Report.

Workarounds

  • Deploy network policies or firewall rules that explicitly block sandbox processes from accessing localhost and internal network ranges
  • Use container isolation or network namespaces to prevent sandbox escape to the host network
  • Implement a reverse proxy or network gateway that filters SSRF attempts before they reach sensitive services
  • Consider running the tool in a fully isolated virtual machine with no access to sensitive host services
bash
# Example: Restrict localhost access using iptables for a specific user running the sandbox
# Create a dedicated user for sandbox execution
useradd -r -s /bin/false sandbox_user

# Block localhost access for the sandbox user
iptables -A OUTPUT -m owner --uid-owner sandbox_user -d 127.0.0.0/8 -j DROP
iptables -A OUTPUT -m owner --uid-owner sandbox_user -d 169.254.169.254 -j DROP

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

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechPydantic

  • SeverityMEDIUM

  • CVSS Score5.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityLow
  • AvailabilityLow
  • CWE References
  • CWE-918
  • Technical References
  • JFrog Vulnerability Report
  • Related CVEs
  • CVE-2026-25640: Pydantic AI Path Traversal Vulnerability

  • CVE-2024-3772: Pydantic Regular Expression DoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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