LiveActive security incident?Get immediate response
CVE Record

CVE-2026-27735: mcp-server-git : Path traversal in git_add allows staging files outside repository boundaries

Model Context Protocol Servers is a collection of reference implementations for the model context protocol (MCP). In mcp-server-git versions prior to 2026.1.14, the git_add tool did not validate that file paths provided in the files argument were within the repository boundaries. Because the tool used GitPython's repo.index.add() rather than the Git CLI, relative paths containing `../` sequences that resolve outside the repository were accepted and staged into the Git index. Users are advised to upgrade to 2026.1.14 or newer to remediate this issue.

MediumCVSS 6.4Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

CVE-2026-27735 affects mcp-server-git, part of the Model Context Protocol Servers reference implementations. A path validation flaw in git_add could let a user-controlled request stage files located outside the intended Git repository. This does not prove data theft by itself, but it can expose sensitive files to later commit or workflow actions.

Executive priority

Treat as a near-term patching item for teams using MCP Git automation. It is not reported as actively exploited, but it can undermine repository boundaries and expose files through normal development workflows. Prioritize environments connected to AI agents, CI/CD, or automated commits.

Technical view

Versions before 2026.1.14 allow git_add file paths that traverse outside repository boundaries. The advisory states this occurred because GitPython repo.index.add() accepted relative paths resolving outside the repository, unlike expected Git CLI behavior. The issue is classified as CWE-22 with CVSS 4.0 score 6.4.

Likely exposure

Exposure is likely where mcp-server-git versions earlier than 2026.1.14 are deployed and users or agents can invoke git_add with file arguments. Risk is higher if repositories sit near sensitive files or if staged changes are automatically committed, reviewed poorly, or processed by automation.

Exploitation context

The source bundle does not indicate CISA KEV listing or active exploitation. Exploitation requires interaction with the git_add tool and suitable repository/file-system context. The main concern is unauthorized staging of files outside the repository boundary, potentially affecting downstream confidentiality or integrity.

Researcher notes

Evidence is limited to the CVE record, GitHub advisory, and linked pull request. The advisory names the vulnerable behavior and fixed version but does not provide broad deployment impact. Focus review on path-boundary validation, GitPython index behavior, and whether downstream automation could turn staging into disclosure.

Mitigation direction

  • Upgrade mcp-server-git to version 2026.1.14 or newer.
  • Review vendor advisory GHSA-vjqx-cfc4-9h6v for current guidance.
  • Restrict who or what can invoke mcp-server-git tools.
  • Avoid running MCP Git servers near unrelated sensitive files.
  • Review automation that commits or publishes staged changes.

Validation and detection

  • Inventory deployments using modelcontextprotocol servers mcp-server-git.
  • Confirm installed versions are 2026.1.14 or newer.
  • Review recent Git index changes for unexpected outside-repository file paths.
  • Check CI or agent logs for unusual git_add activity.
  • Verify access controls around MCP clients and tool invocation.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-27735 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
6.4 (4.0)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
6.4CVSS 4.0MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N——Primary CVE score

Vulnerability scoring details

Base CVSS 4.0 score

6.4Medium
CVSS 4.0 vector shape for CVE-2026-27735Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
modelcontextprotocolservers< 2026.1.14Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-22 · source CWE mapping

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.