CVE-2021-22227
GitLab vulnerability analysis and mitigation

Overview

A reflected cross-site scripting (XSS) vulnerability was identified in GitLab versions before 13.11.6, 13.12.6, and 14.0.2. The vulnerability was discovered on March 30, 2020, and was assigned CVE-2021-22227. This security flaw affected the GitLab release edit functionality, specifically related to the back_url parameter (GitLab Issue).

Technical details

The vulnerability existed in the release edit URLs where an attacker could inject malicious JavaScript code through the back_url parameter. When a user with release edit permissions clicked the Cancel button on the affected page, the malicious code would execute. While the execution was prevented on gitlab.com due to Content Security Policy (CSP), the vulnerability could potentially be exploited on instances with different security configurations (GitLab Issue).

Impact

If successfully exploited, this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of other users' browsers, potentially leading to account compromise, data theft, or other malicious actions. The vulnerability could also be used as a vector for open redirect attacks (GitLab Issue).

Mitigation and workarounds

The vulnerability was patched in GitLab versions 13.11.6, 13.12.6, and 14.0.2. Users are advised to upgrade to these versions or later to protect against this security issue (Debian Tracker).

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-2024-9183HIGH7.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 05, 2025
CVE-2025-7449MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
NoYesNov 26, 2025
CVE-2025-12653MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2025-13611MEDIUM5.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
NoYesNov 26, 2025
CVE-2025-6195MEDIUM4.3
  • GitLabGitLab
  • 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