Vulnerabilities in pkg:pypi/pghoard
PACKAGECVE-2026-54711 is a LOW password written to debug log vulnerability (CWE-532: Insertion of Sensitive Information into Log File) affecting PGHoard libraries in the PyPI ecosystem. The issue involves password written to debug log. Remediation is available in the latest vendor maintenance releases.
pkg:pypi/pghoard
Vulnerability advisories affecting package pkg:pypi/pghoard. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-mpx4-jmpr-vm8v | CVE-2026-54711 | LOW | PGHoard: Password written to debug log |
| GHSA-m9hc-vxjj-4x6q | CVE-2024-56142 | MODERATE | PGHoard Path Traversal vulnerability |
CVE-2026-54711 at a Glance
How to Fix CVE-2026-54711
To remediate this vulnerability, upgrade all affected PGHoard dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pghoard>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pghoard
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2026-54711, inspect your installed packages using pip:
pip show pghoard
Analyze the terminal output to locate any version of PGHoard in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show pghoard command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-532: Insertion of Sensitive Information into Log File, where the product writes sensitive information to a log file. In PGHoard, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-54711 Affected PGHoard Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pghoard
|
PyPI |
≤ 2.1.0
|
|
References
Frequently Asked Questions
What is CVE-2026-54711?
Which PGHoard versions are affected?
What version fixes CVE-2026-54711?
Is pghoard affected?
What CWE is associated with CVE-2026-54711?
How can I check PyPI dependencies for CVE-2026-54711?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mpx4-jmpr-vm8v",
"modified" : "2026-06-18T15:05:20Z",
"published" : "2026-06-18T15:05:20Z",
"aliases" : [ "CVE-2026-54711" ],
"summary" : "PGHoard: Password written to debug log",
"details" : "### Impact\nWhen using .pgpass, database connection information including the username and password will be logged at the debug level.\n\n### Patches\nUpgrade to version 2.7.1 or greater.\n\n### Workarounds\nFilter out debug-level logs.\n\n### References\nThis issue was discovered by BugCrowd user DRAKOKORIAN.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pghoard"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.1.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Aiven-Open/pghoard/security/advisories/GHSA-mpx4-jmpr-vm8v"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Aiven-Open/pghoard"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-532" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-18T15:05:20Z",
"nvd_published_at" : null
}
}