CVE-2021-22223
GitLab vulnerability analysis and mitigation

Overview

Client-Side code injection vulnerability (CVE-2021-22223) was discovered in GitLab CE/EE versions starting from 11.9. The vulnerability allows attackers to execute PUT requests on behalf of other users through a specially crafted feature flag name when victims click on a malicious link (GitLab Release).

Technical details

The vulnerability stems from insufficient sanitization of Feature Flag descriptions in GitLab. The system was using DOMPurify to allow only <strong> tags and their DOM attributes, but this implementation was inadequate. Attackers could introduce arbitrary DOM attributes which, when combined with existing JavaScript functions in GitLab, could lead to unauthorized PUT requests. The vulnerability has a CVSS v3.1 score of 6.1 (Medium) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N (Ubuntu CVE).

Impact

The vulnerability could allow attackers to perform unauthorized actions on behalf of other users, including potential privilege escalation. In a demonstrated proof-of-concept, attackers could potentially escalate normal account privileges to administrator status through crafted feature flag descriptions (GitLab Issue).

Exploitability

The vulnerability requires user interaction, specifically clicking on a malicious link. The attack can be executed by creating a feature flag with a specially crafted description containing manipulated DOM attributes, which when combined with existing JavaScript functions, can trigger unauthorized PUT requests (GitLab Release).

Mitigation and workarounds

The vulnerability has been patched in GitLab versions 14.0.2, 13.12.6, and 13.11.6. Organizations running affected versions are strongly recommended to upgrade to these or later versions immediately. The fix involves proper sanitization of DOM attributes in feature flag descriptions (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-19478CRITICAL9.4
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 17, 2026
CVE-2026-19228HIGH8.5
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 12, 2026
CVE-2026-19650HIGH7.1
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 17, 2026
CVE-2026-6821MEDIUM4.3
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 12, 2026
CVE-2026-4879MEDIUM4.3
  • GitLab logoGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 12, 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