npm
CVE-2026-137187
@zereight/mcp-gitlab gitlab_api_request: Project allowlist is silently skipped for any GitLab API path that has no parseable project ID
- Severity
- Medium 5.4
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 2.3.7
- Exploit chance
- 0.4% in the next 30 daysHigher than 38% of CVEs. EPSS by FIRST, 1 Dec 2026
- Weakness
- Missing authorization (CWE-862)
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N- Also known as
- GHSA-5xhm-p3jx-2fmc
- Sources
- OSV.dev and GitHub
Description
gitlab_api_request (tools/gitlab-api-request.ts) is gated by an operator-configured per-project allowlist (allowedProjectIds) intended to restrict which GitLab projects this MCP server's caller can reach via arbitrary /api/v4 paths.
assertProjectAllowlist (tools/gitlab-api-request.ts:184-204) calls readProjectIdFromApiRelativePath(relativePath) to extract a project ID from the request path, then checks it against the allowlist via projectAllowed(). But when that extraction returns undefined (line 195-197):
...the function returns immediately with no check performed at all. Any /api/v4 path this helper does not recognize as project-scoped (e.g. group-level endpoints under /groups/..., instance-level/admin endpoints, user-level endpoints, or any future API surface not covered by the parser) bypasses the allowlist entirely, for both the initial request (line 302, executeGitLabApiRequestAsync) and the redirect-revalidation path (line 171-173, assertRedirectedApiPathAllowed, which also…
Affected software
| Software | Affected versions |
|---|---|
@zereight/mcp-gitlabnpm · osv:npm:@zereight/mcp-gitlab |
|
About @zereight/mcp-gitlab
- Weekly downloads (npm)
- 180,681npm, 1 Dec 2026
Vulnerabilities in @zereight/mcp-gitlab
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-140426Zereight gitlab-mcp 2.1.26 before 3.0.0 Project Allowlist Bypass via CI/CD Catalog ToolsMedium 5.3 1 Dec 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-137187
- GitHub Advisory Database https://github.com/advisories/GHSA-5xhm-p3jx-2fmc