The issue was addressed with improvements to the file handling protocol. This issue is fixed in iOS 16.6 and iPadOS 16.6. An app may be able to break out of its sandbox.
https://support.apple.com/kb/HT213764
https://support.apple.com/kb/HT213761
https://support.apple.com/kb/HT213758