This issue was addressed by removing the vulnerable code. This issue is fixed in iOS 16.2 and iPadOS 16.2, macOS Ventura 13.1. An app may be able to bypass Privacy preferences.
https://support.apple.com/en-us/HT213532
https://support.apple.com/en-us/HT213530