CVE-2026-61559zereight gitlab-mcp
Robo de token de autenticación por redirección de URL no validada en gitlab-mcp
Crítica 9.6
Seguir: esta CVE · zereight · zereight gitlab-mcp Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 58
- CVSS 3.1
- 9.6
- EPSS
- —
- Requiere autenticación
- Sí
- Publicada
- 15 sep 2026
- Actualizada
- 30 sep 2026
- Categoría
- Aplicación · Multiplataforma
- Debilidad (CWE)
- CWE-918
- SSVC (CISA)
- Explotación: prueba de concepto · Automatizable: no · Impacto técnico: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:N
Qué pasa
@zereight/mcp-gitlab versiones anteriores a 2.1.27 permiten a usuarios autenticados redirigir las llamadas a la API de GitLab a servidores controlados por atacantes cuando ENABLE_DYNAMIC_API_URL=true. El servidor valida que la URL sea bien formada pero no restringe el dominio, lo que permite que el token privado de la víctima sea enviado a hosts maliciosos.
Ver el texto original de NVD (en inglés)
`@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.
Qué hacer
Hay parche · versiones corregidas: 2.1.27
Actualiza @zereight/mcp-gitlab a versión 2.1.27 o superior, o desactiva ENABLE_DYNAMIC_API_URL si no es necesario.
- Aplica la actualización de seguridad del fabricante para gitlab-mcp.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| npm | @zereight/mcp-gitlab |
≥ 0.0.1 < 2.1.27 |
2.1.27 |
npm install @zereight/mcp-gitlab@2.1.27 |
Según OSV / GitHub Advisories (GHSA-2h44-8472-frjj). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados
- zereight · gitlab-mcp
Según el CNA que publicó la CVE. NVD todavía no cargó los CPE con versiones.
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.