Vulnerabilities in pkg:npm/@zereight/mcp-gitlab

PACKAGE
Advisory Identifier: GHSA-5xhm-p3jx-2fmc
Advisory Summary

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

5 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:npm/@zereight/mcp-gitlab

5 Known Advisory Record(s)

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

CVE Identifier CVE-2026-137187
GHSA Identifier GHSA-5xhm-p3jx-2fmc
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-862: Missing Authorization
Affected Product @zereight/mcp gitlab
Package Ecosystem npm
Published Date
Last Updated

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (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.

@zereight/mcp-gitlab fixed: 2.3.7
npm install @zereight/mcp-gitlab@2.3.7
Verify Direct and Transitive Dependencies

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

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. assertProjectAllowlist (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): ``` if (projectId === undefined) { return; } ``` ...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). Impact: 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. Suggested 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. Found via static analysis of the public repository (commit reviewed: current main as of 2026-10-21). Not tested against a live GitLab instance.

CVE-2026-137187 Affected @zereight/mcp gitlab Versions

1 component(s)
Fixed Versions:
2.3.7
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?
CVE-2026-137187 is a security vulnerability in @zereight/mcp gitlab involving Project allowlist is silently skipped for any GitLab API path that has no parseable project ID under CWE-862: Missing Authorization.
Which @zereight/mcp gitlab versions are affected?
Affected versions include releases prior to 2.3.7 across affected packages: @zereight/mcp-gitlab.
What version fixes CVE-2026-137187?
Upgrading to 2.3.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @zereight/mcp-gitlab affected?
Yes, @zereight/mcp-gitlab is affected in releases prior to 2.3.7. Upgrade your dependency to 2.3.7 or later.
What is the CVSS score of CVE-2026-137187?
CVE-2026-137187 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2026-137187?
CVE-2026-137187 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check npm dependencies for CVE-2026-137187?
Run the dependency tree command: 'npm ls @zereight/mcp-gitlab'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}