# GitLab: the MCP server's OAuth endpoint could reach internal hosts

> CVE-2026-135221 is a server-side request forgery flaw in the OAuth handling of GitLab's MCP server, fixed on 25 November 2026.

- **Severity:** Medium: Real and reproducible, but needs unusual setup, user help or a narrow audience. Plan a fix.
- **Category:** Vulnerability
- **Published by:** GitLab
- **Disclosed:** 2026-11-25
- **CVE:** CVE-2026-135221
- **CVSS:** 6.3
- **Affects:** GitLab Enterprise Edition
- **Research by:** Gunnar Andrews
- **Primary source:** https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-6-2-released/
- **Page:** https://theinjection.dev/items/gitlab-mcp-oauth-token-endpoint-ssrf/

GitLab fixed CVE-2026-135221 on 25 November 2026, a server-side request forgery flaw in its MCP server's OAuth handling that let an authenticated user reach internal network resources. GitLab scores it 6.3 and found it in-house.

## What happened

GitLab published CVE-2026-135221 on 25 November 2026 as one of 13 security fixes in the patch release for 19.6.2, 19.5.9 and 19.4.11. The release notes give the cause as insufficient URL validation in MCP server OAuth handling and credit Gunnar Andrews, who found it internally rather than through the bug bounty.

## How it works

Server-side request forgery (CWE-918) is the mechanism: the MCP server's OAuth token endpoint did not validate the URLs handed to it strictly enough, so a request could be pointed at hosts on the internal network behind the GitLab instance. GitLab's CVSS vector records a changed scope and high confidentiality impact with no integrity or availability impact, which matches reading a response back from an internal service rather than changing it, and marks attack complexity as high.

## Who is affected

GitLab Enterprise Edition from 18.10 before 19.4.11, from 19.5 before 19.5.9, and from 19.6 before 19.6.2 are the ranges in GitLab's CVE record. Exploitation needs an authenticated account on the instance, so self-managed Enterprise Edition installs that accept untrusted or widely shared sign-ups carry the most exposure.

## What to do

Upgrade self-managed GitLab Enterprise Edition to 19.4.11, 19.5.9 or 19.6.2, the versions GitLab names as fixed for this CVE.

## Quick facts

- **Affected:** GitLab EE 18.10 to 19.4.10, 19.5 to 19.5.8, 19.6 to 19.6.1
- **Fixed in:** 19.4.11, 19.5.9, 19.6.2
- **CVE:** CVE-2026-135221
- **CVSS:** 6.3 (CVSS 3.1, assigned by GitLab)
- **Found by:** Gunnar Andrews, internally at GitLab
- **Attack type:** Server-side request forgery
- **Disclosed:** 25 November 2026

## Sources

1. [GitLab Patch Release](https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-6-2-released/)
2. [CVE Record](https://cveawg.mitre.org/api/cve/CVE-2026-135221)
3. [GitHub Advisory](https://github.com/advisories/GHSA-5845-97p8-588c)
