Skip to main content
COSMICBYTEZLABS
NewsSecurityHOWTOsToolsTraining
StudyProjectsNewsletterHire MeAbout
Subscribe

Press Enter to search or Esc to close

News
Security
HOWTOs
Tools
Training
Study
Projects
Newsletter
Hire Me
About
RSS Feed
Reading List
Subscribe

Stay in the Loop

Get the latest security alerts, tutorials, and tech insights delivered to your inbox.

Subscribe NowFree forever. No spam.
COSMICBYTEZLABS

Your trusted source for IT intelligence, cybersecurity insights, and hands-on technical guides.

2868+ Articles
168+ Guides

CONTENT

  • Latest News
  • Security Alerts
  • HOWTOs
  • Checklists
  • Projects
  • Exam Prep

RESOURCES

  • Search
  • Browse Tags
  • Newsletter Archive
  • Reading List
  • RSS Feed

COMPANY

  • About Us
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CosmicBytez Labs. All rights reserved.

System Status: Operational
  1. Home
  2. Security
  3. GitLab MCP Server Open to DNS Rebinding, Full Account Takeover
GitLab MCP Server Open to DNS Rebinding, Full Account Takeover

Critical Security Alert

This vulnerability is actively being exploited. Immediate action is recommended.

SECURITYCRITICALCVE-2026-61568

GitLab MCP Server Open to DNS Rebinding, Full Account Takeover

CVE-2026-61568 (CVSS 9.6) lets a malicious webpage use DNS rebinding to reach a victim's local GitLab MCP server and hijack their GitLab account.

Dylan H.

Security Team

September 16, 2026
4 min read

Affected Products

  • @zereight/mcp-gitlab < 2.1.30

Executive Summary

A second critical flaw, CVE-2026-61568, has been disclosed in @zereight/mcp-gitlab — the popular Model Context Protocol server that connects AI coding agents to GitLab. Versions prior to 2.1.30 expose the server's Streamable HTTP endpoint without an effective Host or Origin allowlist, letting a malicious webpage use DNS rebinding to reach a victim's local MCP listener and drive it as though it were a legitimate client. Combined with the SSRF/token-leak issue disclosed as CVE-2026-61559, researchers at Pluto Security describe the pair as enough to fully hijack a victim's GitLab account from a single visited webpage.

CVSS Score: 9.6 (Critical)


Vulnerability Overview

AttributeValue
CVE IDCVE-2026-61568
CVSS Score9.6 (Critical) — CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
CWECWE-350 — Reliance on Reverse DNS Resolution for a Security-Critical Action
Component@zereight/mcp-gitlab Streamable HTTP transport
Attack VectorNetwork, requires the victim to visit a malicious page
Privileges RequiredNone

Affected Versions

PackageAffected VersionsFixed Version
@zereight/mcp-gitlab≤ 2.1.292.1.30

How the Exploit Works

MCP servers running the Streamable HTTP transport are typically bound to localhost and trusted implicitly because they're assumed to be reachable only by the local AI client. DNS rebinding defeats that assumption:

1. Victim visits an attacker-controlled webpage while an MCP-GitLab instance
   listens locally (e.g. 127.0.0.1:PORT)
2. The page's initial DNS lookup resolves to an attacker server, passing any
   same-origin checks tied to that hostname
3. The attacker's DNS server then rebinds the same hostname to 127.0.0.1
4. The browser, still treating the origin as "trusted," sends requests that
   now land on the local MCP server, carrying an attacker-chosen Host/Origin
5. Because the server accepts those headers without an allowlist, it treats
   the browser-originated request as a legitimate MCP client and processes
   the MCP initialization handshake

From there, the attacker's page can drive the MCP server's GitLab tool calls with the same authority as the victim's actual AI agent — and, chained with CVE-2026-61559's token exfiltration path, walk away with the victim's GitLab credentials entirely.

Impact of Successful Exploitation

ImpactDescription
Full GitLab Account TakeoverChained with CVE-2026-61559, leads to complete token compromise
Unauthorized Repository AccessRead/write to private repos the victim's token can reach
CI/CD Pipeline AbuseTrigger or modify pipelines, exfiltrate CI secrets
Silent ExploitationRequires only that the victim visit a page — no explicit consent to any GitLab action

Remediation

Step 1: Update Immediately

npm install @zereight/mcp-gitlab@latest
npx @zereight/mcp-gitlab --version   # confirm >= 2.1.30

Version 2.1.30 enforces Host and Origin validation middleware by default, rejecting requests that don't match the expected local origin.

Step 2: Network-Level Hardening

  1. Bind the MCP server strictly to 127.0.0.1 and avoid exposing it on any interface reachable from a browser on an untrusted network.
  2. Where supported, enforce an explicit Host/Origin allowlist rather than relying on default bind behavior alone.
  3. Treat any locally bound MCP server as a potential DNS-rebinding target — this class of bug is common across MCP implementations, not unique to GitLab's.

Step 3: Rotate Credentials

Given the pairing with CVE-2026-61559's token leakage, rotate GitLab tokens used by any MCP-GitLab instance that was running an affected version, and review GitLab audit logs for unexpected API activity.


References

  • Pluto Security — One Request to Own Every Repo: How We Hijacked GitLab Through Its MCP Server
  • CVEReports — CVE-2026-61568
  • NIST NVD — CVE-2026-61568

Related Reading

  • Critical SSRF in GitLab MCP Server Leaks Private Tokens to Attackers
  • Critical Argument Injection in Fireshare Lets Attackers Overwrite Files
#MCP#GitLab#DNS Rebinding#CVE-2026-61568#AI Supply Chain#CWE-350

Related Articles

CVE-2026-62316: Microsoft UFO MCP Server DNS Rebinding and SSRF via Missing Host Validation

CVSS 8.8: Microsoft's UFO framework MCP server binds to localhost but skips Host/Origin header checks, enabling DNS rebinding and SSRF attacks. Fixed in 3.0.8.

4 min read

Critical SSRF in GitLab MCP Server Leaks Private Tokens to Attackers

CVE-2026-61559 lets attackers redirect @zereight/mcp-gitlab's outbound API calls via a request header, leaking victim GitLab tokens to attacker hosts.

4 min read

CVE-2025-62593: Ray Project Code Injection — DNS Rebinding Enables Unauthenticated RCE

Critical RCE in Anyscale Ray via DNS rebinding attack bypasses User-Agent checks, exposing developer dashboards to unauthenticated job submission.

4 min read
Back to all Security Alerts