Advisory

PYSEC-2026-2872

Also known as: CVE-2026-54711, GHSA-mpx4-jmpr-vm8v

Summary

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.

Severity

Not rated by the source.

Dates

Published
2026-07-13 15:46 UTC
Modified
2026-07-13 16:32 UTC

Affected packages and fixes

pghoard

PyPI · All systems

Affected

  • introduced 0, last affected 2.1.0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences