Cross-site scriptingin GitLab.
No public exploit found; not on exploited lists.
A cross-site scripting issue has been discovered in GitLab affecting all versions starting from 5.1 before 16.10.7, all versions starting from 16.11 before 16.111.4, all versions starting from 17.0 before 17.0.2. When viewing an XML file in a repository in raw mode, it can be made to render as HTML if viewed under specific circumstances.
- Upgrade GitLab to 16.10.7, 16.11.4, 17.0.2 or later, whichever matches your release line.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 25 Apr 2024CVE ID reserved by GitLab.
- 12 Jun 2024Published in the CVE List.
- 29 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found. CISA assessment (SSVC): exploitation none.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Other GitLab vulnerabilities
Same weakness: Cross-site scripting
- gitlab.com issue-tracking, permissions-required
- about.gitlab.com
Patchminder. CVE-2024-4201: Cross-site scripting in GitLab. https://patchminder.com/cve/cve-2024-4201/ (accessed 5 December 2026).