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
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GitLab | GitLab | 5.1 – < 16.10.7, 16.11 – < 16.11.4, 17.0 – < 17.0.2 | 16.10.7 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | gitlab | No fix yet | — |
Advisories 2
- NCSC-2024-0258 Kwetsbaarheden verholpen in GitLab Enterprise Edition en Community Edition NCSC-NL (Netherlands) · Jun 14, 2024
- WID-SEC-2024-1367 GitLab: Mehrere Schwachstellen ermöglichen Denial of Service und Cross-Site Scripting BSI CERT-Bund (WID) · Jun 12, 2024
References
- GitLab Issue #458229 issue-tracking permissions-required
- HackerOne Bug Bounty Report #2473886 technical-description exploit permissions-required
- 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