CVE-2023-0050
Published: 09 March 2023
Summary
CVE-2023-0050 is a high-severity Cross-site Scripting (CWE-79) vulnerability in Gitlab Gitlab. Its CVSS base score is 8.7 (High).
Operationally, ranked in the top 1.8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
CVE-2023-0050 is a stored cross-site scripting vulnerability in GitLab, present in all versions from 13.7 through 15.7.7, 15.8 through 15.8.3, and 15.9 through 15.9.1. The flaw resides in the handling of Kroki diagrams, where a specially crafted diagram can be stored and later rendered to execute arbitrary script in a victim's browser session.
An authenticated attacker with permission to create or edit content containing Kroki diagrams can upload a malicious payload that persists in the application. When another user views the affected page, the script executes in the victim's context, enabling actions such as account takeover or unauthorized data access on their behalf. The CVSS 8.7 score reflects network attack vector, low complexity, and the requirement for some user interaction combined with changed scope.
GitLab advisories and the associated issue tracker entries direct administrators to upgrade to the fixed releases 15.7.8, 15.8.4, or 15.9.2, which sanitize Kroki diagram input before storage and rendering. No additional configuration changes are specified beyond applying the patches.
The EPSS score rose from a low baseline after disclosure to a peak of 0.7828 in December 2025 before receding to the current value of 0.5651, indicating that exploitation interest increased well after the initial publication.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2023-12153
Vulnerability details
An issue has been discovered in GitLab affecting all versions starting from 13.7 before 15.7.8, all versions starting from 15.8 before 15.8.4, all versions starting from 15.9 before 15.9.2. A specially crafted Kroki diagram could lead to a stored XSS…
more
on the client side which allows attackers to perform arbitrary actions on behalf of victims.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.