An issue in code signature validation was addressed with improved checks. This issue is fixed in macOS Big Sur 11.7, macOS Ventura 13, iOS 16, iOS 15.7 and iPadOS 15.7, macOS Monterey 12.6. An app may be able to bypass code signing checks.
https://support.apple.com/en-us/HT213443
https://support.apple.com/en-us/HT213488
https://support.apple.com/en-us/HT213446