Intel

AIKIDO-2026-665195

@zereight/mcp-gitlab is vulnerable to Path Traversal

Path TraversalCVE-2026-61462 Published 4 days ago

86

High Risk

This Affects:

JS@zereight/mcp-gitlab
0.0.1 - 2.1.30
Fixed in 2.1.38
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

@zereight/mcp-gitlab is vulnerable to Path Traversal in versions 0.0.1 - 2.1.30.

How to fix this

Upgrade the @zereight/mcp-gitlab library to the patch version.