GitLab Cross-Site Scripting (XSS) Vulnerability (CVE-2023-0050)

GitLab Cross-Site Scripting (XSS) Vulnerability (CVE-2023-0050)

março 5, 2023 | NSFOCUS


Recently, NSFOCUS CERT found that GitLab has issued an official security notice to fix a cross-site scripting vulnerability in GitLab Community Edition (CE) and Enterprise Edition (EE) (CVE-2023-0050). A remote attacker with low privileges can cause the client to store XSS through a specially crafted Kroki diagram, and finally perform arbitrary operations on the system in the name of the victim. Affected users should take protective measures as soon as possible.

Reference link:

Scope of Impact

Affected version

  • 13.7 <= GitLab CE/EE < 15.7.8
  • 15.8 <= GitLab CE/EE < 15.8.4
  • 15.9 <= GitLab CE/EE < 15.9.2

Unaffected version

  • GitLab CE/EE >= 15.7.8
  • GitLab CE/EE >= 15.8.4
  • GitLab CE/EE >= 15.9.2

Vulnerability Detection

Relevant users can determine whether the current application is at risk through version detection.

Use the following command to view the current GitLab version:

cat /opt/gitlab/embedded/service/gitlab-rails/VERSION

If the current version is within the affected range, there may be security risks.


At present, GitLab has officially released a security version to fix this vulnerability. It is recommended that the affected users upgrade the protection in time:


This advisory is only used to describe a potential risk. NSFOCUS does not provide any commitment or promise on this advisory. NSFOCUS and the author will not bear any liability for any direct and/or indirect consequences and losses caused by transmitting and/or using this advisory. NSFOCUS reserves all the rights to modify and interpret this advisory. Please include this statement paragraph when reproducing or transferring this advisory. Do not modify this advisory, add/delete any information to/from it, or use this advisory for commercial purposes without permission from NSFOCUS.


NSFOCUS, Inc., a global network and cyber security leader, protects enterprises and carriers from advanced cyber attacks. The company’s Intelligent Hybrid Security strategy utilizes both cloud and on-premises security platforms, built on a foundation of real-time global threat intelligence, to provide multi-layered, unified and dynamic protection against advanced cyber attacks.

NSFOCUS works with Fortune Global 500 companies, including four of the world’s five largest financial institutions, organizations in insurance, retail, healthcare, critical infrastructure industries as well as government agencies. NSFOCUS has technology and channel partners in more than 60 countries, is a member of both the Microsoft Active Protections Program (MAPP), and the Cloud Security Alliance (CSA).

A wholly owned subsidiary of NSFOCUS Technologies Group Co., Ltd., the company has operations in the Americas, Europe, the Middle East and Asia Pacific.