The issue was addressed with improved checks. This issue is fixed in visionOS 2, macOS Sequoia 15. A malicious app with root privileges may be able to modify the contents of system files.
https://support.apple.com/en-us/121249
https://support.apple.com/en-us/121238