This issue was addressed by removing the vulnerable code. This issue is fixed in Safari 27.2, iOS 27.2 and iPadOS 27.2, macOS Golden Gate 27.2, visionOS 27.2. A remote attacker may be able to break out of Web Content sandbox.
https://support.apple.com/en-us/149527
https://support.apple.com/en-us/149526
https://support.apple.com/en-us/149521