This issue was addressed with improved validation of symlinks. This issue is fixed in macOS Sonoma 14.6. An app may be able to access protected user data.
https://support.apple.com/kb/HT214119
https://support.apple.com/en-us/HT214119
https://support.apple.com/en-us/120911