CVE-2021-22199
GitLab vulnerability analysis and mitigation

Overview

A stored Cross-Site Scripting (XSS) vulnerability was discovered in GitLab (CVE-2021-22199) affecting all versions starting from 12.9. The vulnerability was specifically related to the use of scoped labels in GitLab's interface. The issue was initially reported on December 3, 2020, and was publicly disclosed in early 2021 (GitLab Issue, CVE Details).

Technical details

The vulnerability allowed for the injection of arbitrary JavaScript code into markdown using the scoped label description. The exploit was confirmed to work on gitlab.com using Firefox (version 83.0), self-hosted GitLab instances without Content Security Policy (CSP) using Safari (version 13.1), and Chrome for Android (version 86.0.4240.198). The vulnerability received a CVSS v3.1 score of 10.0 (CRITICAL) (NVD Results).

Impact

The vulnerability allowed attackers to perform any action within the application that a legitimate user could perform, including stealing sensitive user data and credentials. The attack vector involved creating a public project, establishing a label with the XSS payload, and adding the malicious label to issue comments across multiple public projects (GitLab Issue).

Mitigation and workarounds

The vulnerability was fixed in subsequent GitLab releases. Debian's security tracker indicates that the issue was resolved in version 17.3.5-3 for the sid release (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
  • 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