When using .pgpass, database connection information including the username and password will be logged at the debug level.
Upgrade to version 2.7.1 or greater.
Filter out debug-level logs.
This issue was discovered by BugCrowd user DRAKOKORIAN.
"https://github.com/pypa/advisory-database/blob/main/vulns/pghoard/PYSEC-2026-2872.yaml"