PYSEC-2026-2872

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/pghoard/PYSEC-2026-2872.yaml
JSON Data
https://api.osv.dev/v1/vulns/PYSEC-2026-2872
Aliases
Published
2026-07-13T15:46:21.090761Z
Modified
2026-07-13T16:32:56.983457365Z
Severity
  • 2.4 (Low) CVSS_V4 - CVSS:4.0/AV:L/AC:L/AT:N/PR:H/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
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.

References

Affected packages

PyPI / pghoard

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
2.1.0

Affected versions

1.*
1.0.0
1.1.0
1.2.0
1.3.0
1.4.0
1.5.0
1.7.0
2.*
2.0.0
2.1.0

Database specific

source
"https://github.com/pypa/advisory-database/blob/main/vulns/pghoard/PYSEC-2026-2872.yaml"