A path handling issue was addressed with improved validation. This issue is fixed in iOS 17.5 and iPadOS 17.5, watchOS 10.5, macOS Sonoma 14.5. A shortcut may output sensitive user data without consent.
https://support.apple.com/kb/HT214106
https://support.apple.com/kb/HT214104
https://support.apple.com/kb/HT214101
https://support.apple.com/en-us/HT214106
https://support.apple.com/en-us/HT214104
https://support.apple.com/en-us/HT214101
http://seclists.org/fulldisclosure/2024/May/16