CVE-2023-1836
GitLab vulnerability analysis and mitigation

Overview

A cross-site scripting (XSS) vulnerability was discovered in GitLab affecting versions from 5.1 before 15.9.6, 15.10 before 15.10.5, and 15.11 before 15.11.1. The vulnerability allows XML files viewed in 'raw' mode to be rendered as HTML under specific circumstances, particularly on iOS devices (GitLab Release).

Technical details

The vulnerability exists when viewing XML files in repository 'raw' mode. GitLab serves these files with Content-Type: plain/text and Content-Disposition: inline headers. On iOS browsers, the content-type header is ignored if there is a content type defined in the actual XML file, causing the browsers to render the content as HTML instead of plain text. This behavior is related to an old specification implementation in WebKit, affecting all iOS browsers (GitLab Issue).

Impact

On self-hosted GitLab instances without proper Content Security Policy (CSP), this vulnerability could lead to full cross-site scripting attacks. On gitlab.com, while JavaScript execution is blocked by CSP, the vulnerability still allows HTML injection that could be used for open redirection or phishing attacks. The vulnerability received a CVSS score of 4.4 (CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N) (GitLab Release).

Mitigation and workarounds

The vulnerability has been patched in GitLab versions 15.9.6, 15.10.5, and 15.11.1. The fix involves serving XML files with Content-Disposition: attachment header, similar to how SVG files are handled, which forces browsers to download the files instead of displaying them inline (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-2024-9183HIGH7.7
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 05, 2025
CVE-2025-7449MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
NoYesNov 26, 2025
CVE-2025-12653MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2025-13611MEDIUM5.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
NoYesNov 26, 2025
CVE-2025-6195MEDIUM4.3
  • GitLabGitLab
  • gitlab
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