gitlab_api_request project allowlist silently skipped for paths with no parseable project ID in zereight/gitlab-mcp
In @zereight/mcp-gitlab 2.2.5 through 2.3.6, the gitlab_api_request tool is gated by an operator-configured per-project allowlist, allowedProjectIds, meant to restrict which GitLab projects a caller can reach through arbitrary /api/v4 paths. The check extracts a project ID from the request path and compares it with the allowlist. When that extraction returns nothing, the check returns at once with no check performed at all. Any path the helper does not recognise as project-scoped, such as group-level endpoints under /groups, instance-level or admin endpoints, and user-level endpoints, bypasses the allowlist entirely, on both the initial request and the redirect-revalidation path. An operator who set the allowlist to confine a caller to a known set of projects gets no confinement for any GitLab API surface outside that one path shape. The finding rests on static analysis of the public repository; it was not tested against a live GitLab instance. The advisory records 2.2.5 through 2.3.6 as affected and 2.3.7 as patched. CVE-2026-137187 is assigned.
- Affected artifact
- zereight/gitlab-mcp — gitlab_api_request tool (tools/gitlab-api-request.ts)mcp server
- Affected versions
- @zereight/mcp-gitlab ≥ 2.2.5 to < 2.3.7
- Fixed in
- 2.3.7
- Last verified
- 2026-12-04
- Upstream aliases
- GHSA-5xhm-p3jx-2fmcCVE-2026-137187
Severity
CVSS 4.0 score 5.4 (Medium), scored by HOL.
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
What this means
GHSA-5xhm-p3jx-2fmc / CVE-2026-137187: in @zereight/mcp-gitlab, the gitlab_api_request project allowlist was skipped whenever no project ID could be parsed from the path, so non-project paths bypassed it entirely. Fixed in 2.3.7; upgrade from 2.3.6 and below.
What to do
Upgrade @zereight/mcp-gitlab to 2.3.7 or later. Operators of similar tools should fail closed when a request cannot be matched to the allowlist, rather than treating an unrecognised path as allowed.
Evidence
Precondition. A caller able to invoke gitlab_api_request on a server whose operator configured allowedProjectIds, requesting a GitLab API path with no parseable project ID.
Source proof. Per the advisory, the flaw was found by static analysis of the public repository: assertProjectAllowlist returns early when readProjectIdFromApiRelativePath returns undefined, so no allowlist check runs for such paths. HOL did not run the server; this rests on the advisory.
Version determination. Determined by range — The advisory states @zereight/mcp-gitlab 2.2.5 through 2.3.6 is affected, patched in 2.3.7.
Disclosure
Disclosure state: independent public · Publisher: zereight/gitlab-mcp
Naming decision: named. Vendor named as drafted. Finding already public with fix published; naming call sits with this job under Nov 24-25 2026 rules.
Vendor response: fixed — Fix published in 2.3.7.
2026-10-23 · vendor action
Maintainers published advisory GHSA-5xhm-p3jx-2fmc with the fix in 2.3.7.
2026-12-04 · guard update
Status moved from draft to triaged: Transition to triaged: record is in scope, sources are primary, finding already public and fixed upstream in 2.3.7, CVE-2026-137187 assigned.
2026-12-04 · guard update
Status moved from triaged to evidence_verified: Transition to evidence_verified: record is in scope, sources are primary, finding already public and fixed upstream in 2.3.7, CVE-2026-137187 assigned.
2026-12-04 · disclosure
Status moved from evidence_verified to public: Transition to public: record is in scope, sources are primary, finding already public and fixed upstream in 2.3.7, CVE-2026-137187 assigned.
Affected artifact references
Cite this record
[HOL-VULN-2026-0019] gitlab_api_request project allowlist silently skipped for paths with no parseable project ID in zereight/gitlab-mcp — HOL Agent Vulnerability Ledger, HOL (hol.org), 2026. https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0019
Canonical URL: https://hol.org/guard/security/vulnerabilities/hol-vuln-2026-0019
Found an error in this record, or want to appeal it? Report an issue or appeal.
Appeal or correct this record
Maintainers and affected parties can submit evidence, dispute the record, or request a correction through the disclosure page. A dispute marks the record visibly disputed — it never silently disappears.