An authorization bypass exists in the `getVersionsByEnvironment()` function. This issue occurs because of missing `organizationId` scoping, allowing authenticated users to access application versions belonging to other organizations. An attacker can exploit this by requesting the 'app-environments versions' endpoint using their own priority-1 production environment ID and a victim's `app id` to retrieve the victim's version list and structure.