What’s Vulnerable › Vulnerabilities
CVE-2024-4201: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in GitLab
- Severity: medium (CVSS 4.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-06-12 · updated 2026-06-17
- Weakness: CWE-79
Description
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.
Affected products
- GitLab: from 5.1 before 16.10.7; from 16.11.0 before 16.111.4; from 17.0.0 before 17.0.2 — fixed in 16.10.7, 16.111.4, 17.0.2
How to fix
Upgrade to a fixed version: GitLab 16.10.7, 16.111.4, 17.0.2. Check the vendor advisory for mitigations.
References
- https://about.gitlab.com/releases/2024/06/12/patch-release-gitlab-17-0-2-released/#xss-and-content-injection-when-viewing-raw-xhtml-files-on-ios-devices
- https://gitlab.com/gitlab-org/gitlab/-/issues/458229
- https://hackerone.com/reports/2473886
- https://about.gitlab.com/releases/2024/06/12/patch-release-gitlab-17-0-2-released/#xss-and-content-injection-when-viewing-raw-xhtml-files-on-ios-devices
- https://gitlab.com/gitlab-org/gitlab/-/issues/458229
- https://hackerone.com/reports/2473886
Get alerted when CVE-2024-4201 or the next vulnerability affects your stack