cvelo
P3 · MediumCVSS 5.4EPSS 0.4%

@zereight/mcp-gitlab gitlab_api_request: project allowlist is silently skipped for any GitLab API path that has no parseable project ID

  • CVE-2026-137187
  • GHSA-5xhm-p3jx-2fmc
  • EUVD-2026-139637

Description

@zereight/mcp-gitlab is a Model Context Protocol server for GitLab. From 2.2.5 until 2.3.7, assertProjectAllowlist for gitlab_api_request in tools/gitlab-api-request.ts returns without enforcing the configured allowedProjectIds check when readProjectIdFromApiRelativePath cannot extract a project ID from the requested /api/v4 path. Group, user, instance, and other unrecognized paths bypass the intended project restriction in both initial requests and redirect revalidation; redirect revalidation also returns early for an empty relative path. A caller can reach GitLab API operations allowed by the server's token outside the configured project boundary. This issue is fixed in 2.3.7.

Text from the CVE.org record.

Affected

  • zereight gitlab-mcp

    • >= 2.2.5, < 2.3.7
  • @zereight/mcp-gitlabnpm

    • from 2.2.5, up to 2.3.6

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.