{"id":"CVE-2026-137187","summary":"@zereight/mcp-gitlab gitlab_api_request: project allowlist is silently skipped for any GitLab API path that has no parseable project ID","details":"@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.","aliases":["GHSA-5xhm-p3jx-2fmc"],"modified":"2026-11-30T20:00:13.318010948Z","published":"2026-11-30T18:42:45.072Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-862"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137187.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/137xxx/CVE-2026-137187.json"},{"type":"FIX","url":"https://github.com/zereight/gitlab-mcp/commit/9faa3beab973cae147d57f125b79e2b25d30520e"},{"type":"WEB","url":"https://github.com/zereight/gitlab-mcp/releases/tag/v2.3.7"},{"type":"ADVISORY","url":"https://github.com/zereight/gitlab-mcp/security/advisories/GHSA-5xhm-p3jx-2fmc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-137187"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/zereight/gitlab-mcp","events":[{"introduced":"7d52f00d0584bd392d1725a28072f307f8403b8f"},{"fixed":"03dd46dfd45829abf0c1da43da6273f29c67919c"},{"fixed":"9faa3beab973cae147d57f125b79e2b25d30520e"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"2.2.5"},{"fixed":"2.3.7"}]},{"range":[{"fixed":"9faa3beab973cae147d57f125b79e2b25d30520e"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v2.3.7","range":[{"fixed":"03dd46dfd45829abf0c1da43da6273f29c67919c"}],"source":"REFERENCES_TAG"}]}}],"versions":["v2.3.6","v2.3.5","v2.3.4","v2.3.3","v2.3.2","v2.3.1","v2.3.0","v2.2.6","v2.2.5"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-137187.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"}]}