CVE-2026-135221 in GitLab
Summary
by MITRE • 11/25/2026
GitLab has remediated an issue in GitLab EE affecting all versions from 18.10 before 19.4.11, 19.5 before 19.5.9, and 19.6 before 19.6.2 that under certain conditions could have allowed an authenticated user to perform server-side request forgery against internal network resources due to insufficient URL validation in MCP server OAuth handling.
If you want to get best quality of vulnerability data, you may have to visit VulDB.
Analysis
by VulDB Data Team • 11/25/2026
GitLab has addressed a critical security vulnerability within its Enterprise Edition, impacting version ranges including 18.10 prior to 19.4.11, 19.5 prior to 19.5.9, and 19.6 prior to 19.6.2. This flaw stems from insufficient URL validation logic embedded within the OAuth handling mechanisms of the Model Context Protocol server component. The vulnerability allows an authenticated user to manipulate request parameters in a manner that facilitates Server-Side Request Forgery attacks against internal network resources. By exploiting this weakness, attackers can bypass standard security controls and force the GitLab instance to make HTTP requests to arbitrary destinations controlled by the attacker or located within the organization's private infrastructure.
The technical root cause lies in how the application processes URLs during OAuth token exchange and subsequent API calls initiated through MCP servers. When a user authenticates via an external identity provider, the system validates redirect URIs but fails to adequately sanitize or restrict the target endpoints used by internal services that rely on these tokens. This lack of strict validation enables malicious actors to craft specific requests where the destination URL points to internal IP addresses, localhost interfaces, or other sensitive backend systems that are not exposed publicly but remain accessible from within the GitLab server's network context. The attacker leverages their authenticated session to trigger these forged requests, effectively using the privileged application as a proxy for unauthorized access.
From an operational perspective, this vulnerability poses significant risks related to data exfiltration and lateral movement within enterprise environments. An adversary who successfully exploits this flaw can probe internal services such as database servers, configuration management tools, or other microservices running on non-public ports. This capability aligns with the MITRE ATT&CK technique T1598, specifically Phishing for Information via Ingress Tool Transfer or more broadly SSRF techniques like T1434 which involves Internal Network Discovery and Reconnaissance through server-side requests. The impact extends beyond mere information disclosure; if internal services lack proper authentication themselves, the attacker could potentially execute commands, modify data, or gain further footholds within the network by interacting with vulnerable backend applications that trust traffic originating from the GitLab host.
Mitigation strategies primarily involve upgrading to patched versions of GitLab Enterprise Edition as specified in the vendor's security advisory. Organizations running affected versions must prioritize immediate patching to close this attack vector. In addition to version upgrades, administrators should review network segmentation policies to ensure that internal services are not overly reliant on source IP validation from application servers without additional authentication checks. Implementing strict egress filtering rules can also limit the ability of compromised applications to communicate with arbitrary external or internal endpoints. Security teams should monitor logs for unusual outbound connection patterns originating from GitLab instances, particularly those involving OAuth flows and MCP server interactions, to detect potential exploitation attempts in real-time before full remediation is applied.