The issue was addressed with improved memory handling. This issue is fixed in macOS Ventura 13.5, iOS 16.6 and iPadOS 16.6, tvOS 16.6, Safari 16.6, watchOS 9.6. Processing web content may lead to arbitrary code execution.
https://support.apple.com/en-us/HT213848
https://support.apple.com/en-us/HT213847
https://support.apple.com/en-us/HT213846