← All advisories

CVE-2026-137187mediumBroken access control2026-11-30

CVE-2026-137187: GitLab MCP server (@zereight/mcp-gitlab) skipped its project allowlist for group, user and instance API paths in gitlab_api_request (fixed 2.3.7)

From 2.2.5 until 2.3.7, @zereight/mcp-gitlab's assertProjectAllowlist for the gitlab_api_request tool returned without enforcing allowedProjectIds whenever readProjectIdFromApiRelativePath could not extract a project ID from the /api/v4 path. Group, user, instance and other unrecognized paths bypassed the restriction, in initial requests and in redirect revalidation (which also returned early for an empty path). A caller, such as an AI agent steered by injected content, could reach any GitLab API operation the server's token allows outside the configured project boundary. Fixed in 2.3.7.

01.

What it is

allowedProjectIds is meant to confine the MCP server to specific GitLab projects.

assertProjectAllowlist only enforced it when it could parse a project ID from the request path; for paths with no project ID it allowed the request.

Affected: @zereight/mcp-gitlab 2.2.5 up to but not including 2.3.7. CVE published 30 November 2026.

02.

How to check

  1. Run npm ls @zereight/mcp-gitlab (or check your npx pin) and confirm 2.3.7 or later.
03.

How to fix

  1. Upgrade @zereight/mcp-gitlab to 2.3.7 or later.
  2. Give the server a GitLab token scoped as narrowly as possible (project access token) rather than relying on allowedProjectIds alone.
npm ls -g @zereight/mcp-gitlab; npm view @zereight/mcp-gitlab version
04.

Sources

Related on VibeVulns
More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.