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
    • 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-27735

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

CVE-2026-27735 is a path traversal vulnerability in mcp-server-git that allows attackers to stage files outside repository boundaries. This post explains its impact, affected versions, and mitigation steps.

Published: February 27, 2026

CVE-2026-27735 Overview

CVE-2026-27735 is a path traversal vulnerability affecting Model Context Protocol (MCP) Servers, specifically the mcp-server-git component. In versions prior to 2026.1.14, the git_add tool failed to validate that file paths provided in the files argument remained within repository boundaries. This allows attackers to stage arbitrary files from outside the repository into the Git index by using relative path sequences containing ../ traversal patterns.

Critical Impact

Attackers can stage sensitive files from outside the repository directory, potentially exposing configuration files, credentials, or other sensitive data when commits are pushed to remote repositories.

Affected Products

  • Model Context Protocol Servers mcp-server-git versions prior to 2026.1.14

Discovery Timeline

  • 2026-02-26 - CVE CVE-2026-27735 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-27735

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as Path Traversal. The root cause lies in the implementation choice within the git_add tool, which utilizes GitPython's repo.index.add() method rather than invoking the Git CLI directly.

The GitPython library's repo.index.add() function does not inherently restrict path resolution to within the repository's root directory. When a user supplies a file path containing directory traversal sequences (such as ../../../etc/passwd), the path resolves to a location outside the repository boundary, yet the file is still staged into the Git index.

This differs from the behavior of the native Git CLI, which includes built-in safeguards against staging files from outside the working tree. By bypassing the CLI in favor of the Python API, the vulnerability was introduced.

Root Cause

The vulnerability stems from insufficient input validation on the files argument passed to the git_add tool. The implementation trusted user-supplied paths without canonicalizing them or verifying they resolve to locations within the repository's working directory. The use of GitPython's repo.index.add() method directly processes relative paths without enforcing repository boundary constraints, unlike the Git CLI which would reject such paths.

Attack Vector

An attacker exploiting this vulnerability would craft a malicious request to the git_add tool containing file paths with ../ sequences designed to traverse outside the repository directory. For example, providing a path like ../../../etc/passwd or ../../../home/user/.ssh/id_rsa would cause those sensitive files to be staged into the repository's Git index.

Once staged, if a commit operation follows and the changes are pushed to a remote repository, the attacker-controlled content from outside the repository becomes part of the version history, potentially exposing sensitive system files, credentials, or configuration data to anyone with access to the repository.

The vulnerability requires user interaction, as the malicious path must be accepted and processed by the MCP server. Network access to the MCP server is required to trigger the vulnerable functionality.

Detection Methods for CVE-2026-27735

Indicators of Compromise

  • Presence of files in Git staging area or commit history that originate from outside the repository directory
  • Git index entries containing path traversal sequences or references to system files (e.g., /etc/passwd, .ssh/ files, .env files)
  • Unexpected sensitive data appearing in repository commits

Detection Strategies

  • Monitor git_add operations for file paths containing ../ sequences
  • Implement file integrity monitoring on Git repositories to detect staging of files outside expected directories
  • Review commit histories for anomalous file additions that don't correspond to expected project files
  • Deploy application-layer firewall rules to detect and block path traversal patterns in API requests

Monitoring Recommendations

  • Enable verbose logging for MCP server operations, particularly the git_add tool
  • Set up alerts for any file operations that reference paths outside the repository root
  • Periodically audit Git index contents and recent commits for unauthorized file inclusions

How to Mitigate CVE-2026-27735

Immediate Actions Required

  • Upgrade mcp-server-git to version 2026.1.14 or newer immediately
  • Audit Git repositories managed by affected MCP server instances for any unauthorized file staging or commits
  • Review recent commit history for evidence of path traversal exploitation
  • If sensitive files were exposed, rotate any compromised credentials and assess data breach impact

Patch Information

The vulnerability has been remediated in mcp-server-git version 2026.1.14. Users should upgrade to this version or later to address the path traversal issue. Technical details about the fix are available in the GitHub Pull Request #3164. The GitHub Security Advisory GHSA-vjqx-cfc4-9h6v provides additional context on the vulnerability.

Workarounds

  • Implement input validation at the application layer to reject file paths containing ../ sequences before they reach the git_add tool
  • Restrict network access to the MCP server to trusted clients only
  • Deploy a Web Application Firewall (WAF) configured to block path traversal patterns in incoming requests
  • Consider using file system permissions to limit which directories the MCP server process can access
bash
# Configuration example
# Upgrade mcp-server-git to patched version
pip install --upgrade mcp-server-git>=2026.1.14

# Verify installed version
pip show mcp-server-git | grep Version

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechMcp

  • SeverityMEDIUM

  • CVSS Score6.4

  • EPSS Probability0.05%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/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
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Pull Request

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-25905: mcp-run-python RCE Vulnerability

  • CVE-2025-53365: MCP Python SDK DoS Vulnerability
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