What happened
From 2.2.5 to 2.3.7 the GitLab MCP server's allowlist enforcement returned early when a project ID could not be parsed, letting requests that should have been blocked by allowedProjectIds pass (CVSS 5.4, CWE-863).
Why it matters
The project allowlist is the containment control for an agent's GitLab MCP tool; a parse-driver bypass can let the agent read or modify repositories the operator explicitly excluded.
Attack vector
assertProjectAllowlist in tools/gitlab-api-request.ts returns without enforcing the configured allowedProjectIds check when readProjectIdFromApiRelativePath cannot extract a project ID from the API path, so an agent request outside the intended project scope passes (CWE-863).
Affected systems
@zereight/mcp-gitlab from 2.2.5 until 2.3.7 (fixed in 2.3.7)
Mitigation
Upgrade to v2.3.7.