CVE-2026-61560: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in zereight gitlab-mcp
`@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.
AI Analysis
Technical Summary
@zereight/mcp-gitlab versions before 2.1.27 have a path traversal vulnerability (CWE-22) in the 'upload_markdown' tool when SSE transport mode is enabled. This tool reads files from the local filesystem based on an unsanitized file_path parameter, allowing unauthenticated remote attackers to read arbitrary files. Exploiting this, attackers can access the server's environment file to steal the GITLAB_PERSONAL_ACCESS_TOKEN, resulting in complete compromise of the associated GitLab account. The default Docker deployment configuration enables this vulnerable mode. Version 2.1.27 includes a patch that fixes this issue.
Potential Impact
An unauthenticated remote attacker can read arbitrary files on the server, including sensitive environment files containing GitLab personal access tokens. This leads to full compromise of the GitLab account associated with the token, allowing complete control over the GitLab projects and data. The vulnerability has a CVSS 3.1 score of 9.8 (critical), indicating high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade to version 2.1.27 or later, which contains a patch that fixes the path traversal vulnerability. Until upgraded, avoid enabling SSE transport mode or restrict network access to trusted users only. The vulnerability is fixed in the official release; no additional mitigations are required once patched.
CVE-2026-61560: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in zereight gitlab-mcp
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.
CVSS v3.1
Score 9.8critical
Affected software
zereight
gitlab-mcp
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
@zereight/mcp-gitlab versions before 2.1.27 have a path traversal vulnerability (CWE-22) in the 'upload_markdown' tool when SSE transport mode is enabled. This tool reads files from the local filesystem based on an unsanitized file_path parameter, allowing unauthenticated remote attackers to read arbitrary files. Exploiting this, attackers can access the server's environment file to steal the GITLAB_PERSONAL_ACCESS_TOKEN, resulting in complete compromise of the associated GitLab account. The default Docker deployment configuration enables this vulnerable mode. Version 2.1.27 includes a patch that fixes this issue.
Potential Impact
An unauthenticated remote attacker can read arbitrary files on the server, including sensitive environment files containing GitLab personal access tokens. This leads to full compromise of the GitLab account associated with the token, allowing complete control over the GitLab projects and data. The vulnerability has a CVSS 3.1 score of 9.8 (critical), indicating high impact on confidentiality, integrity, and availability.
Mitigation Recommendations
Upgrade to version 2.1.27 or later, which contains a patch that fixes the path traversal vulnerability. Until upgraded, avoid enabling SSE transport mode or restrict network access to trusted users only. The vulnerability is fixed in the official release; no additional mitigations are required once patched.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-10T16:48:39.923Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6aa9b95555bf5e2cf56789ea
Added to database: 09/15/2026, 21:32:05 UTC
Last enriched: 09/15/2026, 21:46:31 UTC
Last updated: 09/15/2026, 22:11:28 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.