← AI agent vulnerabilities

CVE-2026-27735

Model Context Protocol Servers

6.5
Severity
Medium
Published
February 26, 2026
Last modified
June 17, 2026

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.

CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Weakness

References

CVE-2026-27735 on NVD

Listed in

MediumMCP serversPath traversal

More Model Context Protocol Servers CVEs

Dec 17
CVE-2025-681438.8

The git_init tool accepted arbitrary filesystem paths and created Git repositories without validating the target location.

Jul 2
CVE-2025-531107.3

Versions of Filesystem prior to 0.6.4 or 2025.7.01 could allow access to unintended files in cases where the prefix matches an allowed directory.

Jul 2
CVE-2025-531097.3

Versions of Filesystem prior to 0.6.4 or 2025.7.01 could allow access to unintended files via symlinks within allowed directories.