Skip to main content
VulnerabilityPublished

CVE-2026-27735: modelcontextprotocol servers · Path Traversal

Affects modelcontextprotocol serversSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 6.4 Medium : upgrade to 2026.1.14 when convenient.

Data as of 30 Oct 2026, 06:59 UTC

CVSS 4.0 base score
6.4Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 27% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 2026.1.14
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 25 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade servers and modelcontextprotocol/servers to 2026.1.14.

Affected software

ProductAffectedFixed in
modelcontextprotocolserversAffected
  • <2026.1.14
Fixed in
  • 2026.1.14
GitHubmodelcontextprotocol/serverspkg:github/modelcontextprotocol/serversOther threatsAffected
  • <2026.1.14
Fixed in
  • 2026.1.14

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate CVE-2026-27735, organizations should immediately upgrade all affected modelcontextprotocol servers to version 2026.1.14 or later, where the path traversal issue is fixed by enforcing strict validation of file paths within repository boundaries. Additionally, restrict access to the git_add tool and related interfaces to trusted users only, minimizing exposure to untrusted inputs. Implement input validation and sanitization on any user-supplied file paths before processing. Employ monitoring and auditing of repository changes to detect unusual file additions or modifications outside expected directories. Consider using file system permissions to limit the ability of the git_add tool to access files outside the repository directory. Finally, incorporate security testing in the development pipeline to detect path traversal and similar vulnerabilities early.

Description

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.

References

Community reviews

Loading reviews…