This issue was addressed with improved redaction of sensitive information. This issue is fixed in iOS 16.7.6 and iPadOS 16.7.6, macOS Monterey 12.7.4, macOS Sonoma 14.1, macOS Ventura 13.6.5. An app may be able to access sensitive user data.
https://support.apple.com/kb/HT213984
https://support.apple.com/en-us/HT214085
https://support.apple.com/en-us/HT214083
https://support.apple.com/en-us/HT214082
https://support.apple.com/en-us/HT213984