ADVISORIES

PyPA Advisory Database

PYSEC-2026-2872

PGHoard: Password written to debug log

Details

Impact

When using .pgpass, database connection information including the username and password will be logged at the debug level.

Patches

Upgrade to version 2.7.1 or greater.

Workarounds

Filter out debug-level logs.

References

This issue was discovered by BugCrowd user DRAKOKORIAN.

Affected packages

EcosystemPackageAffected versions
PyPIpghoard
All versions up to and including 2.1.0

References