GitLab has remediated an issue in GitLab CE/EE affecting all versions from 15.1 before 19.2.8, 19.3 before 19.3.5, and 19.4 before 19.4.2 that, under certain conditions, could have allowed a user to download package files from a public project due to improper authorization checks.
https://docs.gitlab.com/releases/patches/patch-release-gitlab-19-4-2-released/
https://hackerone.com/reports/3641043