@zereight/mcp-gitlab is vulnerable to Path Traversal
77
High Risk
The download_release_asset tool accepts direct_asset_path as an unrestricted string and appends it directly to the GitLab release-download API URL under /projects/{id}/releases/{tag}/downloads/{direct_asset_path}. A caller who can influence that argument can supply ../ dot segments that the URL/fetch stack normalizes, escaping the intended release-download route into another GitLab API path on the same configured host, still carrying the operator's personal access token. This enables same-host path confusion and project-scope bypass, defeating GITLAB_ALLOWED_PROJECT_IDS restrictions and reaching resources of other projects. The fix rejects and URL-encodes dangerous GitLab path segments (disallowing . and ..) before interpolation and adds safe attachment-filename validation for downloads.
You are affected if you are using a version that falls within the vulnerable range and an MCP caller can influence the direct_asset_path argument of the download_release_asset tool, with the greatest impact when GITLAB_ALLOWED_PROJECT_IDS is relied on as a project-scope control.
@zereight/mcp-gitlab is vulnerable to Path Traversal in versions 2.0.8 - 2.1.40.
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