CVE-2026-61560zereight gitlab-mcp
Arbitrary file read and credential theft in gitlab-mcp without authentication
Critical 9.8 No auth needed
Follow: this CVE · zereight · zereight gitlab-mcp We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Sep 15, 2026
- Updated
- Sep 30, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
@zereight/mcp-gitlab versions prior to 2.1.27 expose all MCP tools without authentication when using SSE transport mode. An unauthenticated remote attacker can read arbitrary files from the server, including environment variables, to steal the GitLab personal access token and fully compromise the account. This is the default configuration in Docker deployments.
Show the original NVD text
`@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
Patch available · fixed versions: 2.1.27
Update @zereight/mcp-gitlab to version 2.1.27 or later. Disable SSE mode if not required or implement additional authentication.
- Apply the vendor's security update for gitlab-mcp.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @zereight/mcp-gitlab |
< 2.1.27 |
2.1.27 |
npm install @zereight/mcp-gitlab@2.1.27 |
Per OSV / GitHub Advisories (GHSA-cv3r-c5h8-f4g5). Check the version in your lockfile before upgrading.
Affected products
- zereight · gitlab-mcp
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.