Path traversal in zereight gitlab-mcp
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
`@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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| zereight | gitlab-mcp | before 2.1.27 | 2.1.27 | Patch available | CNA |
| — | @zereight/mcp-gitlab (npm) | before 2.1.27 | 2.1.27 | Patch available | GHSA-cv3r-c5h8-f4g5 |
- gitlab-mcp Vendorzereight Affected before 2.1.27 Fixed in 2.1.27 Patch available CNA
- @zereight/mcp-gitlab (npm) Vendor— Affected before 2.1.27 Fixed in 2.1.27 Patch available GHSA-cv3r-c5h8-f4g5
Remediation
- Fix · CNA gitlab-mcp (zereight) Fixed in 2.1.27
- Fix · GHSA-cv3r-c5h8-f4g5 @zereight/mcp-gitlab (npm) Fixed in 2.1.27 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-61560
- 2026-10-03 Alias added: GHSA-cv3r-c5h8-f4g5
References
Other 7
- 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
- https://github.com/zereight/gitlab-mcp/commit/e436ee4ad067b64584ec9312c9e9c9a2641c1976
- https://github.com/zereight/gitlab-mcp
- https://github.com/zereight/gitlab-mcp/releases/tag/v2.1.27
More zereight vulnerabilities
- TI-2026-44067 mcp-gitlab Path Traversal via job_id Parameter CVSS 4.0CRITICAL 9.2
- TI-2026-44111 @zereight/mcp-gitlab Vulnerable to Server-Side Request Forgery CVSS 3.1CRITICAL 9.6
- TI-2026-44113 @zereight/mcp-gitlab: DNS rebinding reaches local Streamable HTTP MCP transport CVSS 3.1CRITICAL 9.6
Sources
- CVE-2026-61560 · CVE Program
- CVE-2026-61560 · NVD
- FIRST EPSS
- GHSA-cv3r-c5h8-f4g5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences