Skip to main content

@zereight/mcp-gitlab CVE-2026-137187

| EUVDEUVD-2026-139637 MEDIUM
Missing Authorization (CWE-862)
2026-11-30 security-advisories@github.com GHSA-5xhm-p3jx-2fmc
5.4
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Invoke gitlab_api_request via enabled api toolset
  2. Delivery
    Craft /api/v4 path with no project segment
  3. Exploit
    Allowlist check returns early without enforcing
  4. Execution
    Request runs with server GitLab token
  5. Impact
    Reach group/user/instance API outside allowed projects

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a specific non-default deployment: (1) the api toolset must be enabled by explicitly listing api in GITLAB_TOOLSETS - the advisory and README state that GITLAB_TOOLSETS=all, discover_tools, GITLAB_TOOLS, legacy USE_* flags, and GITLAB_TOOL_PROFILE do NOT enable it; (2) an operator must have configured GITLAB_ALLOWED_PROJECT_IDS or a session project scope as the confinement boundary being bypassed; and (3) the attacker must be an authorized caller (PR:L) able to invoke the gitlab_api_request tool. The bypass triggers specifically on any /api/v4 path from which readProjectIdFromApiRelativePath cannot extract a project ID (group-, user-, instance-, admin-level, or otherwise unrecognized paths), and also on redirect revalidation with an empty relative path. Limiting factors: the vulnerability is inert unless the allowlist is configured (no allowlist means no boundary to bypass), the api toolset is opt-in, and the reachable impact is capped by the permissions of the server's configured GitLab token.

Impact

This is a moderate, configuration-dependent authorization flaw (CWE-862), not an emergency. The CVSS vector (AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N, base 5.4) describes a network-reachable, low-complexity bug that requires low privileges (PR:L) - i.e. a caller already authorized to invoke the MCP server's gitlab_api_request tool - and yields only partial confidentiality and integrity impact bounded by the server's GitLab token scope. The vuln.today decision label is 'this_month' (not act_now/emergency), consistent with a real-but-not-urgent finding. There is no CISA KEV listing and no EPSS score in the supplied data, so there is no signal of active or widespread exploitation; absence of these is not evidence of safety but should not be read as confirmed exploitation either. The GHSA explicitly states the issue was 'found via static analysis of the public repository' and was 'not tested against a live GitLab instance,' so no working exploit is demonstrated. The practical risk is real only where an operator deliberately configured allowedProjectIds (or a session project scope) to confine a caller and relied on it as a security boundary - in that case the boundary silently does not apply to group/user/instance/admin API paths. The impact ceiling is set entirely by what the server's GitLab token is permitted to do, which the input does not specify.

Exploit ScenarioDerived

An operator runs the MCP server with the opt-in api toolset and sets GITLAB_ALLOWED_PROJECT_IDS to confine a caller (e.g. an AI agent) to specific projects. The caller issues a gitlab_api_request to a non-project-scoped path such as /groups/:id, /users, or an instance/admin endpoint; because readProjectIdFromApiRelativePath returns no project ID, assertProjectAllowlist returns early and performs no check, so the request proceeds using the server's token outside the intended project boundary. No public working exploit is identified; the finding derives from static analysis and was not validated against a live GitLab instance.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 30, 2026

Missing authorization in the @zereight/mcp-gitlab Model Context Protocol server (versions 2.2.5 through 2.3.6) allows an authorized caller of the gitlab_api_request tool to reach GitLab API operations outside the operator's configured project allowlist, bounded only by the privileges of the server's GitLab token. The allowlist check fails open whenever a requested /api/v4 path does not resolve to a recognized project segment, so group-, user-, instance- and admin-level endpoints, as well as redirect revalidation with an empty relative path, are permitted despite GITLAB_ALLOWED_PROJECT_IDS being configured. Exploitation is conditional: the opt-in api toolset must be explicitly enabled in GITLAB_TOOLSETS, the allowlist must actually be set, and the caller must already hold a token-valid session (PR:L); no public exploit code was identified at time of analysis and the issue is not in CISA KEV. Fixed in 2.3.7.

RemediationAI

Upgrade @zereight/mcp-gitlab to 2.3.7 or later, which contains the upstream commit 9faa3beab973cae147d57f125b79e2b25d30520e and the corresponding release at https://github.com/zereight/gitlab-mcp/releases/tag/v2.3.7 - see the advisory at https://github.com/zereight/gitlab-mcp/security/advisories/GHSA-5xhm-p3jx-2fmc for details. Because 2.3.7 converts the allowlist to a closed-by-default model, only /projects/:id paths for allowed projects are accepted and group-, user-, search-, runner- and instance-level endpoints are now rejected; operators who legitimately relied on those endpoints through gitlab_api_request will lose that capability and must reach such data through other tools or a separately trusted integration. If upgrading is not immediately possible, remove api from GITLAB_TOOLSETS so the gitlab_api_request tool is not exposed at all (note that GITLAB_TOOLSETS=all does not enable it, so no additional change is needed in that configuration), and reduce the blast radius by issuing the server's GitLab token with the minimum scope and role required, since the bypass is capped by that token's permissions. Be aware that even after the fix, request body and query parameters that name a different project are not validated, so the allowlist should not be treated as a complete data-boundary control.

Affected VersionsENISA

gitlab-mcp 2.2.5, < 2.3.7

Affected Packages

npm @zereight/mcp-gitlab fix: 2.3.7
euvd gitlab_mcp fix: 2.3.7

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The package is an MCP server that exposes GitLab operations, including an opt-in gitlab_api_request tool that proxies arbitrary /api/v4 paths using the server's configured GitLab token. The affected code is tools/gitlab-api-request.ts, where assertProjectAllowlist() calls readProjectIdFromApiRelativePath() to derive a numeric project ID from the request path and then validates it with projectAllowed(). CWE-862 (Missing Authorization) arises because the function returns early - with no check at all - when the extraction yields undefined, treating 'project could not be identified' as 'allow' rather than deny. The same fail-open path exists in the redirect-revalidation routine (assertRedirectedApiPathAllowed), which also returns early for an empty relative path, so a redirect from a project-scoped request can land on a non-project endpoint without re-validation. Because the parser only recognizes /projects/:id shapes, every other GitLab API surface - /groups/..., /users/..., /search, /runners, instance/admin endpoints, and any future route not covered by the parser - silently escapes the boundary. The fix (commit 9faa3beab973cae147d57f125b79e2b25d30520e) inverts the logic to a closed-by-default model in which only /projects/:id paths for an allowed project are accepted when GITLAB_ALLOWED_PROJECT_IDS or a session project scope is present, and all other endpoints are rejected. The accompanying documentation change explicitly states that body and query parameters naming another project are still not inspected, and that GITLAB_PROJECT_ID and OAuth group allowlists are not enforced by this tool.

Know when Gitlab gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 5.4 MEDIUM

Network-reachable tool callable by an already-authorized caller (PR:L) with no special timing or user interaction (AC:L/UI:N); impact is partial read/write (C:L/I:L) bounded by the server token, no availability effect.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

1
Patch available
Nov 30, 2026 - 20:05 EUVD

DescriptionCVE.org

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

Threat Intelligence Overview

EPSS Score
0.4%
Top 61% exploitable
Prevalence
Low
niche third-party GitLab MCP server, limited production deployment footprint
Threat Intel
1
1 source
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

More in Gitlab

View all
CVE-2021-22205 CRITICAL POC
10.0 Apr 23

An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. Rated critical severity (CVSS 10

CVE-2023-7028 CRITICAL POC
10.0 Jan 12

An issue has been discovered in GitLab CE/EE affecting all versions from 16.1 prior to 16.1.6, 16.2 prior to 16.2.9, 16.

CVE-2021-22175 CRITICAL POC
9.8 Jun 11

When requests to the internal network for webhooks are enabled, a server-side request forgery vulnerability in GitLab af

CVE-2026-85706 CRITICAL POC
10.0 Sep 12

Unauthenticated arbitrary file read in GitLab CE/EE lets remote attackers retrieve files from the GitLab server via the

CVE-2026-97229 CRITICAL POC
10.0 Oct 13

Remote code execution in GitLab CE/EE (all versions from 19.2 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2)

CVE-2013-4490 MEDIUM POC
6.5 May 13

The SSH key upload feature (lib/gitlab_keys.rb) in gitlab-shell before 1.7.3, as used in GitLab 5.0 before 5.4.1 and 6.x

CVE-2022-2992 CRITICAL POC
9.9 Oct 17

A vulnerability in GitLab CE/EE affecting all versions from 11.10 prior to 15.1.6, 15.2 to 15.2.4, 15.3 to 15.3.2 allows

CVE-2024-45409 CRITICAL POC
9.8 Sep 10

The Ruby SAML library is for implementing the client side of a SAML authorization. Rated critical severity (CVSS 9.8), t

CVE-2026-110264 CRITICAL POC
10.0 Oct 22

Remote code execution in GitLab CE/EE can be triggered by a specially crafted regular expression processed through a vul

CVE-2026-87719 CRITICAL POC
9.9 Sep 12

Sensitive credential and configuration disclosure in GitLab Enterprise Edition allows an authenticated user with Duo Cha

CVE-2018-18843 CRITICAL POC
10.0 Dec 04

The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 11.3.x before 11.3.9, and 11.4.x before 11.4

CVE-2026-72867 CRITICAL POC
9.9 Aug 10

Authenticated command injection in Dokploy (self-hostable PaaS) versions 0.29.3 through 0.29.12 lets a low-privileged us

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy