In all versions of GitLab CE/EE, provided a user ID, anonymous users can use a few endpoints to retrieve information about any GitLab user.
https://gitlab.com/gitlab-org/gitlab/-/issues/297473
https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-39882.json