The issue was addressed with improved checks. This issue is fixed in macOS Sonoma 14.6. An app may be able to view a contact's phone number in system logs.
https://support.apple.com/kb/HT214119
https://support.apple.com/en-us/HT214119
https://support.apple.com/en-us/120911