Intel

AIKIDO-2026-936407

@zereight/mcp-gitlab is vulnerable to Path Traversal

Path TraversalCVE-2026-61560 Published 4 days ago

98

Critical Risk

This Affects:

JS@zereight/mcp-gitlab
0.0.1 - 2.1.26
Fixed in 2.1.27
Are you affected? Scan for Free

TL;DR

The SSE transport exposes all MCP tools with no authentication, and the upload_markdown tool reads a file from an unvalidated file_path argument before uploading it to a GitLab project. An unauthenticated network-reachable caller can chain these to read arbitrary local files such as /proc/self/environ and exfiltrate the server's GitLab personal access token, leading to full account takeover. This is reachable in the default Docker deployment, where the process runs as root and the port is network-exposed. The fix adds an SSE authentication guard and blocks remote file_path input to upload_markdown.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run the SSE transport with the upload_markdown tool enabled.

Background info

@zereight/mcp-gitlab is vulnerable to Path Traversal in versions 0.0.1 - 2.1.26.

How to fix this

Upgrade the @zereight/mcp-gitlab library to the patch version.