CVE-2021-22224
GitLab vulnerability analysis and mitigation

Overview

A cross-site request forgery (CSRF) vulnerability was identified in GitLab's GraphQL API (CVE-2021-22224). The vulnerability affects GitLab versions since 13.12 and before versions 13.12.6 and 14.0.2. This security issue was disclosed on July 7, 2021, allowing attackers to execute mutations as the victim through the GraphQL API (MITRE CVE, NVD).

Technical details

The vulnerability stems from improper CSRF protection in GitLab's GraphQL API endpoint. Specifically, when sending GET requests, the backend did not enforce the X-CSRF-Token header verification, which is normally required for POST requests. This oversight in the security implementation allowed attackers to bypass the existing CSRF protection mechanisms. The vulnerability has been assigned a CVSS v3.1 base score of 6.5 (Medium) by NIST and 7.1 (High) by GitLab Inc., with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N (NVD).

Impact

The vulnerability allows attackers to execute unauthorized mutations through the GraphQL API by bypassing CSRF protections. When exploited, attackers could perform actions on behalf of authenticated users, such as creating snippets or executing other GraphQL mutations without the victim's knowledge or consent (GitLab Issue).

Mitigation and workarounds

The vulnerability has been fixed in GitLab versions 13.12.6 and 14.0.2. Users are advised to upgrade to these or later versions to protect against this CSRF vulnerability (MITRE CVE).

Additional resources


SourceThis report was generated using AI

Related GitLab vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12571HIGH7.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025
CVE-2025-7449MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2025-12653MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025
CVE-2025-13611MEDIUM5.3
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2025-6195MEDIUM4.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management