@zereight/mcp-gitlab is vulnerable to Path Traversal
86
High Risk
The pipeline and job tools interpolate the job_id argument into the GitLab API URL without URL-encoding or numeric validation, unlike project_id. Because URL parsing collapses ../ segments, a job_id containing dot-dot sequences escapes the intended jobs path and redirects the request to an arbitrary GitLab API endpoint. The request carries the operator's configured personal access token, so a caller who influences job_id can read the token owner's account, projects, and other resources beyond the job scope. The fix URL-encodes and validates job_id so user input cannot escape the intended path prefix.
You are affected if you are using a version that falls within the vulnerable range and an MCP caller can influence the job_id argument of the pipeline or job tools.
@zereight/mcp-gitlab is vulnerable to Path Traversal in versions 0.0.1 - 2.1.30.
Upgrade the @zereight/mcp-gitlab library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant