CVE-2022-4092
GitLab vulnerability analysis and mitigation

Overview

An HTML content injection vulnerability was discovered in GitLab Enterprise Edition (CVE-2022-4092) affecting all versions from 15.6 before 15.6.1. The vulnerability allowed attackers to create malicious README files due to improper neutralization of user-supplied input (NVD, GitLab Advisory).

Technical details

The vulnerability stems from a change in how GitLab renders plain text files, specifically in the markup rendering service. The flaw exists in the plain_unsafe method which allows injection of HTML content, although the content is sanitized by Dumpurify via v-safe-html. While sanitization is in place, it still permits certain HTML tags that could be exploited. The vulnerability has been assigned a CVSS v3.1 base score of 8.0 (HIGH) by NVD and 5.7 (MEDIUM) by GitLab Inc., with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability could allow attackers to create deceptive content, particularly by injecting HTML that mimics GitLab's login form. When users enter their credentials into these fake forms, their accounts could be compromised. The impact is particularly significant because README files are loaded by default in the main view of a project, making it easier for attackers to trick users into revealing their credentials (GitLab Issue).

Mitigation and workarounds

The vulnerability has been fixed in GitLab version 15.6.1. Users are advised to upgrade to this version or later to protect against this vulnerability. The fix involves proper escaping of HTML tags in plain text files (NVD).

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-12571HIGH7.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025
CVE-2025-7449MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
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:*:*:*:*:enterprise:*:*:*
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