An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.8 before 15.5.7, all versions starting from 15.6 before 15.6.4, all versions starting from 15.7 before 15.7.2. A malicious Maintainer can leak the sentry token by changing the configured URL in the Sentry error tracking settings page.
https://hackerone.com/reports/1792626
https://gitlab.com/gitlab-org/gitlab/-/issues/385193
https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-4365.json