An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.4 before 14.5.4, all versions starting from 14.6 before 14.6.4, all versions starting from 14.7 before 14.7.1. GitLab search may allow authenticated users to search other users by their respective private emails even if a user set their email to private.
https://gitlab.com/gitlab-org/gitlab/-/issues/350476
https://gitlab.com/gitlab-org/cves/-/blob/master/2022/CVE-2022-0371.json