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

Published Nov 30, 2026
·
Updated

@zereight/mcp-gitlab is a Model Context Protocol server for GitLab. From 2.2.5 until 2.3.7, assertProjectAllowlist for gitlabapirequest 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 Software

1 affected component
npm/@zereight/mcp-gitlab>=2.2.5<2.3.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade @zereight/mcp-gitlab to a version that resolves this vulnerability.

    Fixed in 2.3.7

Event History

Nov 30, 2026
CVE Published
via MITRE·06:42 PM
Data Sourced
via MITRE·06:42 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

A caller that can invoke the gitlab_api_request tool can exploit it for GitLab API paths where no project ID can be parsed. The caller must use operations that the MCP server's GitLab token is authorized to perform.

2

Are non-project GitLab API endpoints affected?

Yes. Group, user, instance, and other unrecognized /api/v4 paths can bypass the configured allowedProjectIds restriction when they do not contain a parseable project ID. The bypass applies to both initial requests and redirect revalidation.

3

What configurations are affected?

Deployments using configured allowedProjectIds are affected because the project boundary is not enforced for paths without a parseable project ID. The issue affects versions from 2.2.5 until 2.3.7.

4

What should be done if upgrading is not immediately possible?

Restrict access to callers that can invoke gitlab_api_request and limit the permissions of the GitLab token, since requests outside the configured project boundary can use any API operations permitted by that token. Upgrade to 2.3.7 when possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203