In all versions of GitLab CE/EE since version 7.7, the application may let a malicious user create an OAuth client application with arbitrary scope names which may allow the malicious user to trick unsuspecting users to authorize the malicious client application using the spoofed scope name and description.
https://hackerone.com/reports/494530
https://gitlab.com/gitlab-org/gitlab/-/issues/26695
https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39881.json