After releasing and pulling back of critical security update for iOS and macOS, Apple finally releases the updated fix.
This time fix should be adjusted for Safari user agent string.
Fix is referenced as iOS 16.5.1 (c) and macOS Ventura 13.4.1 (c).