Skip to content
MediumVulnerability

GHSA-5xhm-p3jx-2fmc: @zereight/mcp-gitlab gitlab_api_request: Project allowlist is silently skipped for any GitLab API path that has no parseable project ID

Published
Record updated
View JSON
Affected
  • @zereight/mcp-gitlab >= 2.2.5, <= 2.3.6
Fixed in
2.3.7
  • released October 22, 2026, 39 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.

Summary

The gitlab_api_request tool in @zereight/mcp-gitlab checks its allowedProjectIds allowlist only when it can extract a project ID from the /api/v4 path. When assertProjectAllowlist gets no project ID, it returns without any check, so paths such as group-level, instance-level, admin and user-level endpoints bypass the allowlist, including on redirect revalidation. The finding comes from static analysis of the public repository as of 2026-10-21 and was not tested against a live GitLab instance.

Mitigation

The source suggests failing closed, denying requests when no project ID can be extracted from a path, or explicitly enumerating and allowlisting the non-project-scoped endpoints the tool intends to expose.