CVE-2020-13321
GitLab vulnerability analysis and mitigation

Overview

A vulnerability was discovered in GitLab affecting all versions prior to 13.1, identified as CVE-2020-13321. The vulnerability allowed users to bypass username format restrictions, enabling the addition of HTML tags in usernames (NVD, GitLab Release).

Technical details

The vulnerability stemmed from an improper sanitization of username inputs where the system's sanitize method would ultimately call html_safe, allowing certain HTML tags to be rendered instead of being treated as plain text. This specifically occurred in the shared notes view where user names were being processed (GitLab Issue).

Impact

The vulnerability could be exploited to create misleading usernames containing HTML elements, including clickable links and images. This could be used for phishing attacks by redirecting users to malicious sites when they click on a username, or by adding deceptive visual elements like fake 'VIP' badges (GitLab Issue).

Exploitability

The vulnerability could be exploited by setting a username containing specific HTML tags, particularly using the <a href> tag with carefully crafted URLs. Attackers could bypass certain restrictions by using backslashes instead of forward slashes in URLs. The exploit could be used in conjunction with GitLab's snippet feature to create convincing phishing scenarios (GitLab Issue).

Mitigation and workarounds

The vulnerability was patched in GitLab version 13.1.2, 13.0.8, and 12.10.13. GitLab strongly recommended that all installations running affected versions be upgraded to the latest version immediately. The fix involved modifying how user names are rendered to prevent HTML interpretation (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-2026-85706CRITICAL10
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
YesYesSep 12, 2026
CVE-2026-87719CRITICAL9.9
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesSep 12, 2026
CVE-2026-75871CRITICAL9.6
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 27, 2026
CVE-2026-77801MEDIUM6.5
  • GitLab logoGitLab
  • gitlab-workhorse-ce-fips-18.7
NoYesAug 26, 2026
CVE-2026-7487LOW3.5
  • GitLab logoGitLab
  • gitlab
NoYesAug 26, 2026

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