News · GitLab · 2 min read
Event date: · Published:
GitLab patches authorization bypass in its native MCP OAuth tokens
GitLab fixed a medium-severity flaw letting MCP-scoped OAuth tokens bypass authorization and approve or merge code changes without permission.
GitLab disclosed and fixed a medium-severity authorization bypass in OAuth tokens scoped to its own native Model Context Protocol (MCP) server, according to an advisory published by GitHub Security Advisories on November 17, 2026. The issue, tracked as CVE-2026-123142, let authenticated users holding MCP-scoped tokens sidestep the restrictions those tokens were meant to enforce.
What changed
- CVE-2026-123142 (GHSA-w8q8-78gq-rcrx) was published on November 17, 2026.
- The root cause is incorrect authorization checks on MCP-scoped OAuth tokens inside GitLab's own native MCP server.
- Authenticated users with an MCP-scoped token could make unauthorized state changes on issues and merge requests, including approving and merging them.
- The severity is rated Medium, with a CVSS score of 4.3.
- Affected versions are GitLab CE/EE 18.4 before 19.3.9, 19.4 before 19.4.8, and 19.5 before 19.5.6.
- Fixes shipped in versions 19.5.6, 19.4.8, and 19.3.9, released on November 16, 2026.
What it means for people building with AI
The flaw sits in GitLab's first-party MCP integration rather than a third-party community server, so it directly affects teams that connected AI agents to GitLab expecting scoped, least-privilege tokens to limit what those agents could do. With the bypass in place, an MCP-scoped token could be used to approve and merge code changes, actions the scope was specifically designed to prevent.
Fix and disclosure
GitLab says the issue was found internally by team member Chris Bonk rather than reported externally. The fix shipped as part of a batch patch release covering 36 CVEs in total, with most of them unrelated to AI or MCP. Self-managed instances should upgrade to 19.5.6, 19.4.8, or 19.3.9 to apply the fix.
Sources
- Incorrect Authorization issue in GitLab MCP server impacts GitLab CE/EE (GitHub Security Advisories, November 17, 2026, official)
- Patch release: GitLab 19.5.6, 19.4.8, 19.3.9 released (GitLab, November 16, 2026, official)
Written with AI assistance, strictly from the sources listed above. Before it went live, automated checks verified its dates, sources and every language edition.