Low

PGHoard: Password written to debug log

  • Disclosed: 18.06.2026
  • Updated: 11.10.2026 14:17

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 software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Python (PyPI) pghoard <= 2.1.0 no fix

References

CVSS score -
CVSS vector
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
Weakness (CWE)
CWE-532
Platform
Python (PyPI)
Package
pghoard
Disclosed
18.06.2026
Updated
11.10.2026 14:17

Sources and licenses

OSV / GitHub Advisory Database - PYSEC-2026-2872 - PyPA Advisory Database; CC BY 4.0

OSV / GitHub Advisory Database - GHSA-mpx4-jmpr-vm8v - CC BY 4.0

Vulnerability history: pghoard

All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
2
First → latest
12.2024 06.2026
Without a fix
1
Exploited in attacks
0

Severity breakdown

  • Medium 1
  • Low 1

Disclosures per year

  1. 2024: 1
  2. 2025: 0
  3. 2026: 1
  1. PGHoard: Password written to debug log this entry
    Low CVE-2026-54711 <= 2.1.0 no fix
  2. Medium · 6.5 CVE-2024-56142 < 2.6.1-rc 2.6.1-rc

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.