Click to see the query in the CodeQL repository
Sensitive information such as passwords or two-factor authentication (2FA) codes should not be exposed in a system notification. Notifications should not be considered secure, as other untrusted applications may be able to use a NotificationListenerService to read the contents of notifications.
Do not expose sensitive data in notifications.
In the following sample, the password is sent as part of a notification. This can allow another application to read this password.
OWASP Mobile Application Security: Android Data Storage - Application Notifications
Common Weakness Enumeration: CWE-200.