CVE-2026-137187

GitLab MCP skips its project allowlist when a path has no recognized project

zereight · gitlab-mcp

First documented disclosure · Review checkpoint

Summary

The arbitrary GitLab API tool allows non-project paths despite a configured project restriction.

Severity and exploitation evidence

Medium · 5.4/10 · CVSS 3.1. Severity source.

Exploitation not established: The original finding is static analysis, not a live GitLab exploitation test or malicious intrusion. The maintainer published a correction; no victim activity is established.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

assertProjectAllowlist returned when project-ID parsing failed. Initial calls and redirect revalidation could therefore reach group, user, instance or other unrecognized paths without the configured project check.

Conditions required

An operator has set allowedProjectIds and an MCP caller can invoke gitlab_api_request. The server token must have permissions for the requested out-of-scope operation.

Potential impact

Operations outside the intended project boundary, bounded by the GitLab token’s actual rights.

Affected versions and configurations

@zereight/mcp-gitlab 2.2.5 through 2.3.6.

Fix and mitigation status

Stable 2.3.7 was released October 23 and explicitly refuses non-project paths when a project allowlist is set.

Practical next steps

Upgrade to 2.3.7 or later and restrict the GitLab token independently of the tool’s configured allowlist.

Operating lesson

Failure to recognize a resource scope must not mean permission to access it.

Evidence and limits

The original reporter performed static analysis and expressly did not test a live GitLab instance. The release and advisory agree on the fixed boundary. Issuing CNA publication was 2026-11-30, distinct from the earliest verified public disclosure used here. Severity is GitHub_M CNA CVSS 3.1 Medium 5.4. Static review only; upstream tests were not repeated.

Sources