@zereight/mcp-gitlab gitlab_api_request: project allowlist is silently skipped for any GitLab API path that has no parseable project ID
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| zereightgitlab-mcp | — | Not listed |
| npm@zereight/mcp-gitlab |
< 2.3.7→ 2.3.7 |
2.3.7 |
Original description The description as published by the source.
@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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com
- web github.com