Vulnerabilities in pkg:npm/@zereight/mcp-gitlab
PACKAGECVE-2026-137187 is a MODERATE (CVSS 5.4) project allowlist is silently skipped vulnerability (CWE-862: Missing Authorization) affecting @zereight/mcp gitlab libraries in the npm ecosystem. The issue involves project allowlist is silently skipped for any gitlab api path that has no parseable project id. Remediation is available by upgrading affected packages to version 2.3.7.
pkg:npm/@zereight/mcp-gitlab
Vulnerability advisories affecting package pkg:npm/@zereight/mcp-gitlab. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-5xhm-p3jx-2fmc | CVE-2026-137187 | MODERATE | @zereight/mcp-gitlab gitlab_api_request: Project allowlist is silently skipped for any GitLab API path that has no parseable project ID |
| GHSA-cv3r-c5h8-f4g5 | CVE-2026-61560 | CRITICAL | @zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover |
| GHSA-2h44-8472-frjj | CVE-2026-61559 | CRITICAL | @zereight/mcp-gitlab Vulnerable to Server-Side Request Forgery |
| GHSA-vmp7-252j-cwp7 | CVE-2026-61568 | CRITICAL | @zereight/mcp-gitlab: DNS rebinding reaches local Streamable HTTP MCP transport |
| GHSA-5648-rgj9-v224 | - | HIGH | @zereight/mcp-gitlab has multiple safety-control bypasses: execute_graphql read-only + allow-list bypass, unauthenticated transports, session-exhaustion DoS |
CVE-2026-137187 at a Glance
Security Impact
CVSS: 5.4
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N).
How to Fix CVE-2026-137187
To remediate this vulnerability, upgrade all affected @zereight/mcp gitlab dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install @zereight/mcp-gitlab@2.3.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls @zereight/mcp-gitlab
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-137187, inspect your project dependencies using npm:
npm ls @zereight/mcp-gitlab
Analyze the terminal output to locate any version of @zereight/mcp gitlab in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.7), your application is affected.
Note: The npm ls @zereight/mcp-gitlab command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In @zereight/mcp gitlab, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-137187 Affected @zereight/mcp gitlab Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
@zereight/mcp-gitlab
|
npm |
≥ 2.2.5
< 2.3.7
|
2.3.7
|
References
Frequently Asked Questions
What is CVE-2026-137187?
Which @zereight/mcp gitlab versions are affected?
What version fixes CVE-2026-137187?
Is @zereight/mcp-gitlab affected?
What is the CVSS score of CVE-2026-137187?
What CWE is associated with CVE-2026-137187?
How can I check npm dependencies for CVE-2026-137187?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-5xhm-p3jx-2fmc",
"modified" : "2026-12-01T00:53:25Z",
"published" : "2026-12-01T00:53:25Z",
"aliases" : [ "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" : "gitlab_api_request (tools/gitlab-api-request.ts) is gated by an operator-configured per-project allowlist (allowedProjectIds) intended to restrict which GitLab projects this MCP server's caller can reach via arbitrary /api/v4 paths.\n\nassertProjectAllowlist (tools/gitlab-api-request.ts:184-204) calls readProjectIdFromApiRelativePath(relativePath) to extract a project ID from the request path, then checks it against the allowlist via projectAllowed(). But when that extraction returns undefined (line 195-197):\n```\n if (projectId === undefined) {\n return;\n }\n```\n...the function returns immediately with no check performed at all. Any /api/v4 path this helper does not recognize as project-scoped (e.g. group-level endpoints under /groups/..., instance-level/admin endpoints, user-level endpoints, or any future API surface not covered by the parser) bypasses the allowlist entirely, for both the initial request (line 302, executeGitLabApiRequestAsync) and the redirect-revalidation path (line 171-173, assertRedirectedApiPathAllowed, which also returns early when relative.length === 0 or the path doesn't resolve to a recognized project segment).\n\nImpact: an operator who configures allowedProjectIds specifically to confine a caller to a known set of GitLab projects gets no actual confinement for any GitLab API surface outside that one path-shape, even though the tool's own design intent (and its error message at line 201, \"Access denied: Project X is not in the allowed project list\") implies allowedProjectIds is a real boundary.\n\nSuggested fix: fail closed (deny) when a project ID cannot be extracted from a path, rather than treating 'could not identify a project' as 'allow'; or explicitly enumerate and allowlist the non-project-scoped endpoints this tool intends to expose.\n\nFound via static analysis of the public repository (commit reviewed: current main as of 2026-10-21). Not tested against a live GitLab instance.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "@zereight/mcp-gitlab"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.5"
}, {
"fixed" : "2.3.7"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "<= 2.3.6"
}
} ],
"references" : [ {
"type" : "WEB",
"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"
}, {
"type" : "WEB",
"url" : "https://github.com/zereight/gitlab-mcp/commit/9faa3beab973cae147d57f125b79e2b25d30520e"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/zereight/gitlab-mcp"
}, {
"type" : "WEB",
"url" : "https://github.com/zereight/gitlab-mcp/releases/tag/v2.3.7"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-862" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-01T00:53:25Z",
"nvd_published_at" : "2026-11-30T19:17:56Z"
}
}