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
Also known as GHSA-5xhm-p3jx-2fmc
AI summary AI generated
An attacker can call GitLab API paths without a parseable project ID to bypass the configured project allowlist in @zereight/mcp-gitlab's gitlab_api_request tool, reaching operations outside the allowed projects.
Mitigation
- Upgrade @zereight/mcp-gitlab to 2.3.7 or later.
Who should check
- Projects that depend on npm package @zereight/mcp-gitlab (>= 2.2.5, <= 2.3.6)
- Anyone running zereight gitlab-mcp >= 2.2.5, < 2.3.7
Vulnerability facts
- Affected
- @zereight/mcp-gitlab >= 2.2.5, <= 2.3.6
- Fixed in
- 2.3.7
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 5.4 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- CWE
- CWE-862
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm @zereight/mcp-gitlab | >= 2.2.5, <= 2.3.6 | 2.3.7 | ghsa |
| zereight gitlab-mcp | >= 2.2.5, < 2.3.7 | — | cvelist |
Versions mentioned in the description AI generated
Extracted by AI; each line quotes the description word for word. Source data above takes precedence.
- Affected: @zereight/mcp-gitlab From 2.2.5 until 2.3.7 the project allowlist check is skipped for unparseable API paths
From 2.2.5 until 2.3.7
- Fixed: @zereight/mcp-gitlab 2.3.7
This issue is fixed in 2.3.7.
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-137187. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-137187.md Affected: @zereight/mcp-gitlab >= 2.2.5, <= 2.3.6 Fixed in: 2.3.7 Steps: 1. Search this machine and project for @zereight/mcp-gitlab (npm), zereight gitlab-mcp: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
FAQ
Is CVE-2026-137187 being exploited?
There is no confirmed exploitation: CVE-2026-137187 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-137187?
Medium: CVSS 5.4 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2026-137187?
@zereight/mcp-gitlab >= 2.2.5, <= 2.3.6.
Is there a fix for CVE-2026-137187?
Yes. Fixed in 2.3.7. Upgrade @zereight/mcp-gitlab to 2.3.7 or later.
How do I check if I'm affected by CVE-2026-137187?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.