Zereight gitlab-mcp
@zereight/mcp-gitlab's unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover
`@zereight/mcp-gitlab` is a Model Context Protocol server for GitLab. Prior to version 2.1.27, the SSE transport mode (`SSE=true`) exposes all MCP tools without any authentication. The `upload_markdown` tool reads arbitrary files from the server's local filesystem via an unsanitized `file_path` parameter and uploads them to a GitLab project. Combined, any unauthenticated network-reachable attacker can read `/proc/self/environ` to steal the server's `GITLAB_PERSONAL_ACCESS_TOKEN` and achieve full GitLab account takeover. This is the default configuration for Docker deployments. Version 2.1.27 contains a patch.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.1.27
Fixed in 2.1.27
Mitigation
Upgrade gitlab-mcp to 2.1.27 or later.
References
- Vendor advisory github.com/zereight/gitlab-mcp/security/adviso…
- Patch github.com/zereight/gitlab-mcp/pull/482
- Patch github.com/zereight/gitlab-mcp/pull/554
1 more
Timeline
Days relative to CVE publicationFirst public PoC 3.8 days after publication; not in CISA KEV. First PoC: nuclei template: GitLab MCP Server < 2.1.27 - Unauthenticated SSE Transport Access (nuclei template, 19 Sep 2026).
PoC repositories
Found on GitHub.No PoC repositories found yet.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: GitLab MCP Server < 2.1.27 - Unauthenticated SSE Transport Access | 19 Sep 2026 | 14 Nov 2026 |