# 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

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **CWE:** CWE-862
- **Aliases:** GHSA-5xhm-p3jx-2fmc
- **Published:** 2026-11-30T18:42:45.072Z
- **Modified:** 2026-12-01T00:53:26.000Z

> **AI summary (AI-generated, claude-haiku-5-5):** 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.

## 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

## 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

- npm `@zereight/mcp-gitlab`: affected \>= 2.2.5, \<= 2.3.6; fixed 2.3.7 (ghsa)
- zereight gitlab-mcp: \>= 2.2.5, \< 2.3.7 (cvelist)

## Technologies

GitLab (AI-matched), MCP servers and SDKs (AI-matched), npm packages

## Mitigation

- Upgrade @zereight/mcp-gitlab to 2.3.7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/zereight/gitlab-mcp/security/advisories/GHSA-5xhm-p3jx-2fmc>
- patch: <https://github.com/zereight/gitlab-mcp/commit/9faa3beab973cae147d57f125b79e2b25d30520e>
- other: <https://github.com/zereight/gitlab-mcp/releases/tag/v2.3.7>
- other: <https://nvd.nist.gov/vuln/detail/CVE-2026-137187>
- other: <https://github.com/advisories/GHSA-5xhm-p3jx-2fmc>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-137187>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-5xhm-p3jx-2fmc> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-137187> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-137187>
