Description
An issue has been discovered in GitLab CE/EE affecting all versions from 15.10 before 17.3.6, 17.4 before 17.4.3, and 17.5 before 17.5.1. An attacker could inject HTML into the Global Search field on a diff view leading to XSS.
Problem types
CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Product status
15.10 (semver) before 17.3.6
17.4 (semver) before 17.4.3
17.5 (semver) before 17.5.1
Credits
Thanks [joaxcar](https://hackerone.com/joaxcar) for reporting this vulnerability through our HackerOne bug bounty program
References
gitlab.com/gitlab-org/gitlab/-/issues/481819 (GitLab Issue #481819)
hackerone.com/reports/2659386 (HackerOne Bug Bounty Report #2659386)