MediumVulnerability
GHSA-5xhm-p3jx-2fmc: @zereight/mcp-gitlab gitlab_api_request: Project allowlist is silently skipped for any GitLab API path that has no parseable project ID
- Identifiers
- CVE-2026-137187GHSA-5xhm-p3jx-2fmc
- Published
- Record updated
- Affected
- @zereight/mcp-gitlab >= 2.2.5, <= 2.3.6
- Fixed in
- 2.3.7
- released October 22, 2026, 39 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
Summary
The gitlab_api_request tool in @zereight/mcp-gitlab checks its allowedProjectIds allowlist only when it can extract a project ID from the /api/v4 path. When assertProjectAllowlist gets no project ID, it returns without any check, so paths such as group-level, instance-level, admin and user-level endpoints bypass the allowlist, including on redirect revalidation. The finding comes from static analysis of the public repository as of 2026-10-21 and was not tested against a live GitLab instance.
Mitigation
The source suggests failing closed, denying requests when no project ID can be extracted from a path, or explicitly enumerating and allowlisting the non-project-scoped endpoints the tool intends to expose.
Related items
- MediumCVE-2026-139894: davila7 claude-code-templates missing authentication in Claude API proxySimilar attack · NVD/CVE Database
- MediumGHSA-r32g-3hfv-h4jj: PinePaper MCP: Server-side request forgery in URL fetchingSimilar attack · GitHub Advisory Database
- HighCVE-2026-140281: GPT-SoVITS unsafe deserialization in /set_model endpoint of api.pySimilar attack · NVD/CVE Database
- MediumCVE-2026-139889: Moonshot AI Kimi Code improper authorization in tool policy serviceSimilar attack · NVD/CVE Database
- HighCVE-2026-93329: Google Cloud Gemini Enterprise Agent Platform SSRF via /api-proxy endpointSimilar attack · NVD/CVE Database