CVE-2026-61559 Details
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.
A server-side request forgery (SSRF) vulnerability has been identified in the '@zereight/mcp-gitlab' package, specifically in versions 0.0.1 prior to 2.1.27. When the 'ENABLE_DYNAMIC_API_URL' environment variable is set to true, the server accepts the 'X-GitLab-API-URL' HTTP header and uses it as the base URL for outbound GitLab API calls. Although the server checks that the URL is well-formed, it does not restrict which hosts can be used. This allows an attacker to intercept the victim's GitLab Private-Token by directing API calls to an attacker-controlled server.
Users can update to version 2.1.27 or later, where this vulnerability has been patched. For those unable to update, it is recommended to disable 'ENABLE_DYNAMIC_API_URL' and to validate 'X-GitLab-API-URL' against a allowlist of trusted hosts if the feature must be used.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 15, 2026CISA-ADP
Assessed Sep 17, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/zereight/gitlab-mcp/security/advisories/GHSA-2h44-8472-frjj | CISA-ADP | AdvisoryExploitRemedyVendor |
| https://github.com/zereight/gitlab-mcp/commit/6ffb4cc70706fd05b1ab80901676bc2998b6db6d | [email protected] | Source CodeVendor |
| https://github.com/zereight/gitlab-mcp/pull/625 | [email protected] | Issue TrackingVendor |
| https://github.com/zereight/gitlab-mcp/releases/tag/v2.1.27 | [email protected] | Release NotesVendor |
| https://github.com/zereight/gitlab-mcp/security/advisories/GHSA-2h44-8472-frjj | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| @zereight/mcp-gitlab | >= 0.0.1, < 2.1.27 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 17, 2026 | CVE Modified | CISA-ADP |
| Sep 15, 2026 | New CVE Received | [email protected] |
Volerion