@zereight/mcp-gitlab vulnerability: API paths whose project ID cannot be parsed silently skip the project whitelist
@zereight/mcp-gitlab gitlab_api_request: Project allowlist is silently skipped for any GitLab API path that has no parseable project ID
A security advisory discloses a whitelist bypass vulnerability (CVE-2026-137187) in @zereight/mcp-gitlab (GitLab MCP server). Its gitlab_api_request tool compares against the allowedProjectIds whitelist by parsing the project ID from the request path; once a project ID cannot be parsed, the check function returns directly without performing any check, so all /api/v4 paths not recognized as project-level—group-level, instance-level/administrator, user-level, etc.—completely bypass the whitelist, and the redirect re-check path likewise returns early and skips the check. Administrators who configure allowedProjectIds to restrict callers to a specified set of projects do not actually get this constraint. The advisory recommends denying by default when a project ID cannot be extracted, or explicitly enumerating the non-project-level endpoints allowed to be exposed. The finding comes from static analysis of the public repository; the author states it was not tested on a real GitLab instance; versions 2.2.5 through 2.3.6 are affected, and it has been fixed in 2.3.7.