@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
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. …
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.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| @zereight/mcp-gitlab | npm | >= 0.0.1, < 2.1.27 | 2.1.27 |
- CriticalMLflow: Unauthenticated full-read SSRF in webhook delivery: _validate_webhook_url bypassed via unvalidated HTTP redirects (and DNS rebindingmlflowExploited
- CriticalSSRF + LLM API key exfiltration via user-controlled basepath / baseUrl in 8 chat-model nodesflowise, flowise-components
- CriticalLocalAI POST /models/apply permits unauthenticated server-side request forgery through gallery URLsgithub.com/mudler/LocalAI
- CriticalFastMCP OpenAPI Provider has an SSRF & Path Traversal Vulnerabilityfastmcp
- CriticalBentoML SSRF Vulnerability in File Upload Processingbentoml
- Criticallobe-chat `/api/proxy` endpoint Server-Side Request Forgery vulnerability@lobehub/chat
- Critical@zereight/mcp-gitlab: Unauthenticated arbitrary file read via `upload_markdown` enables PAT exfiltration and full account takeover@zereight/mcp-gitlab
- Critical@zereight/mcp-gitlab: DNS rebinding reaches local Streamable HTTP MCP transport@zereight/mcp-gitlab
- High@zereight/mcp-gitlab has multiple safety-control bypasses: execute_graphql read-only + allow-list bypass, unauthenticated transports, sessio@zereight/mcp-gitlab
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.