This issue was addressed with additional entitlement checks. This issue is fixed in visionOS 2.4, tvOS 18.4, iPadOS 17.7.6, iOS 18.4 and iPadOS 18.4, macOS Sequoia 15.4. An app may be able to enumerate a user's installed apps.
https://support.apple.com/en-us/122378
https://support.apple.com/en-us/122377
https://support.apple.com/en-us/122373