Threat Advisory

Allowlist Bypass in MCP-GitLab Lets Attackers Reach Non-Project GitLab APIs

Threat: Vulnerability
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: Medium
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-137187 with a CVSS score of 5.4 is a missing authorization flaw in the @zereight/mcp-gitlab (npm) package. The vulnerability exists in the GitLab API request tool, where the operator-configured per-project allowlist is enforced by extracting a project ID from the requested /api/v4 path. When the path does not contain a parseable project ID, the allowlist check returns without performing any validation, so the request is treated as allowed. This affects both the initial API request and the redirect-revalidation path, allowing group-level, instance-level, user-level, or other non-project-scoped GitLab API endpoints to bypass the intended project boundary. An attacker with low privileges and network access can exploit the flaw without user interaction by issuing requests to unrecognized API paths, potentially reaching GitLab functionality outside the configured allowed projects. The business impact is a weakened access-control boundary that may expose confidential project or instance data and permit limited unauthorized modifications, undermining operator trust in the tool’s confinement controls.

RECOMMENDATION:

We recommend you to update @zereight/mcp-gitlab to version 2.3.7 or later.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

CVE-2026-137187 with a CVSS score of 5.4 is a missing authorization flaw in the @zereight/mcp-gitlab (npm) package. The vulnerability exists in the GitLab API request tool, where the operator-configured per-project allowlist is enforced by extracting a project ID from the requested /api/v4 path. When the path does not contain a parseable project ID, the allowlist check returns without performing any validation, so the request is treated as allowed. This affects both the initial API request and the redirect-revalidation path, allowing group-level, instance-level, user-level, or other non-project-scoped GitLab API endpoints to bypass the intended project boundary. An attacker with low privileges and network access can exploit the flaw without user interaction by issuing requests to unrecognized API paths, potentially reaching GitLab functionality outside the configured allowed projects. The business impact is a weakened access-control boundary that may expose confidential project or instance data and permit limited unauthorized modifications, undermining operator trust in the tool’s confinement controls.

RECOMMENDATION:

We recommend you to update @zereight/mcp-gitlab to version 2.3.7 or later.[emaillocker id="1283"]

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu