iOS and iPadOS 15 fix a pretty serious security flaw that allowed third-party applications to access Apple ID information and recent search terms.
Apple this week confirmed the fix in an update to its security content guide for iOS 15. It does not look like the issue has been eliminated in iOS 14, which is no longer receiving standalone security updates.