Skip to main content

CVE-2026-61560: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in zereight gitlab-mcp

0
Critical
VulnerabilityCVE-2026-61560cvecve-2026-61560cwe-22
Published: 09/15/2026 (09/15/2026, 21:09:00 UTC)
Source: CVE Database V5
Vendor/Project: zereight
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected software

zereight

gitlab-mcp

Affected versions
<2.1.27

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/15/2026, 21:46:31 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses