This issue was addressed with improved redaction of sensitive information. This issue is fixed in macOS Monterey 12.7.2, macOS Ventura 13.6.3, iOS 17.2 and iPadOS 17.2, tvOS 17.2, watchOS 10.2, macOS Sonoma 14.2. An app may be able to access user-sensitive data.
https://support.apple.com/en-us/HT214041
https://support.apple.com/en-us/HT214040
https://support.apple.com/en-us/HT214038
https://support.apple.com/en-us/HT214037