Description
mcp-gitlab contains a path traversal vulnerability in the job_id parameter of build/index.js that allows attackers to redirect GitLab API requests to arbitrary endpoints. Attackers can supply crafted job_id values like ../../../user to escape the intended path prefix and access arbitrary GitLab API resources using the operator's personal access token.
Severity (CVSS)
| Base score | 9.2 |
|---|---|
| Severity | Critical |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-73 — External Control of File Name or Path
Affected products
| Vendor | Product | Versions |
|---|---|---|
| zereight | mcp-gitlab | 0 to <2.1.18 |
References
- https://github.com/zereight/gitlab-mcp/issues/587 (issue-tracking)
- https://github.com/zereight/gitlab-mcp (product)
- https://github.com/zereight/gitlab-mcp/commit/e2a81a047ab8750fa5bfa1763b5d85e5616f3994 (patch)
- https://www.vulncheck.com/advisories/mcp-gitlab-path-traversal-via-job-id-parameter (third-party-advisory)
Generated from the official CVE List on 14 Jul 2026 07:01 UTC.