CVE-2021-22185
GitLab vulnerability analysis and mitigation

Overview

A stored cross-site scripting (XSS) vulnerability was discovered in GitLab versions 13.8 and above, identified as CVE-2021-22185. The vulnerability was disclosed on March 24, 2021, and affects both GitLab Community Edition (CE) and Enterprise Edition (EE). The issue stems from insufficient input sanitization in the wiki functionality (GitLab Release, NVD).

Technical details

The vulnerability is classified as a stored XSS vulnerability (CWE-79) that occurs due to improper neutralization of input during web page generation. The CVSS v3.1 base score is 5.4 (Medium), with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N. The CVSS v2.0 score is 3.5 (Low) with the vector (AV:N/AC:M/Au:S/C:N/I:P/A:N) (NVD).

Impact

The vulnerability allows an attacker to exploit a stored cross-site scripting vulnerability through a specially-crafted commit to a wiki. This could potentially lead to the execution of malicious scripts in the context of other users' browsers who view the affected wiki pages (GitLab Release).

Mitigation and workarounds

GitLab addressed this vulnerability in versions 13.9.2, 13.8.5, and 13.7.8. Organizations running affected versions are strongly recommended to upgrade to these patched versions immediately. The fix was released on March 4, 2021, as part of a security release (GitLab Release).

Community reactions

The vulnerability was reported through GitLab's HackerOne bug bounty program by researcher @yvvdwf. GitLab acknowledged and addressed the vulnerability promptly through their security release process (GitLab Release).

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