The issue was addressed with improved checks. This issue is fixed in macOS Sonoma 14. Processing web content may lead to arbitrary code execution. Apple is aware of a report that this issue may have been actively exploited against versions of iOS before iOS 16.7.
https://www.helpnetsecurity.com/2024/08/29/n-day-exploits-government-websites/
https://thehackernews.com/2024/08/russian-hackers-exploit-safari-and.html
https://storage.googleapis.com/gweb-uniblog-publish-prod/documents/Year_in_Review_of_ZeroDays.pdf
https://webkitgtk.org/security/WSA-2023-0009.html
https://support.apple.com/en-us/HT213940