This issue was addressed with improved state management. This issue is fixed in macOS Ventura 13.3, Safari 16.4, iOS 16.4 and iPadOS 16.4, iOS 15.7.4 and iPadOS 15.7.4, tvOS 16.4. A remote user may be able to cause unexpected app termination or arbitrary code execution.
https://support.apple.com/en-us/HT213676
https://support.apple.com/en-us/HT213674
https://support.apple.com/en-us/HT213673