UTC
Critical

@zereight/mcp-gitlab Vulnerable to Server-Side Request Forgery

CVE-2026-61559 · GHSA-2h44-8472-frjj · published 2026-09-15

Severity
Critical
CVSS score
9.6
Chance of exploitation (EPSS)
0.54%
Fixed in
2.1.27
  • Exploitation Public proof of concept
  • Automatable No
  • Technical impact Total
  • CISA SSVC
What it is

The attacker obtains the victim's GitLab Personal Access Token or CI/CD job token in a single request. With the stolen token they gain full GitLab API access at the victim's permission level: read of all repositories, issues, merge requests, CI/CD pipeline definitions and variables/secrets; write to push code, modify pipelines, create or delete resources, and rotate CI/CD variables. …

What to do

Upgrade @zereight/mcp-gitlab to 2.1.27 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.

Validate X-GitLab-API-URL against a configurable allowlist of trusted GitLab hostnames before assigning the value to apiUrl. Reject any request whose X-GitLab-API-URL hostname is not in the allowlist. Apply this check at both index.ts:11541 and index.ts:11787. Document GITLAB_ALLOWED_HOSTS in the README alongside ENABLE_DYNAMIC_API_URL. If maintaining an allowlist is not feasible, disable ENABLE_DYNAMIC_API_URL by default and document the token-forwarding risk prominently.

Affected
PackageRegistryAffectedFixed in
@zereight/mcp-gitlabnpm>= 0.0.1, < 2.1.272.1.27

The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.

Sources: GitHub Advisory Database, reviewed and malware advisories (CC BY 4.0, https://github.com/advisories); advisories published by Cursor (https://github.com/cursor/cursor/security/advisories); advisories published by OpenClaw (https://github.com/openclaw/openclaw/security/advisories); advisories published by vLLM (https://github.com/vllm-project/vllm/security/advisories); advisories published by Open WebUI (https://github.com/open-webui/open-webui/security/advisories); advisories published by n8n (https://github.com/n8n-io/n8n/security/advisories); advisories published by Flowise (https://github.com/FlowiseAI/Flowise/security/advisories); advisories published by Langflow (https://github.com/langflow-ai/langflow/security/advisories); advisories published by the MCP Python SDK project (https://github.com/modelcontextprotocol/python-sdk/security/advisories); advisories published by MLflow (https://github.com/mlflow/mlflow/security/advisories); CISA Known Exploited Vulnerabilities catalog (CC0). Data as of 2026-11-22. ShieldMap describes how each problem works and how to fix it; it does not publish exploit code. Report a correction to [email protected].