High severity7.5NVD Advisory· Published Jun 17, 2022· Updated Jun 17, 2026
CVE-2022-25852
CVE-2022-25852
Description
All versions of package pg-native; all versions of package libpq are vulnerable to Denial of Service (DoS) when the addons attempt to cast the second argument to an array and fail. This happens for every non-array argument passed. Note: pg-native is a mere binding to npm's libpq library, which in turn has the addons and bindings to the actual C libpq library. This means that problems found in pg-native may transitively impact npm's libpq.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
libpqnpm | < 1.8.10 | 1.8.10 |
pg-nativenpm | < 3.0.1 | 3.0.1 |
Affected products
5- cpe:2.3:a:libpq_project:libpq:*:*:*:*:*:node.js:*:*
- cpe:2.3:a:pg-native_project:pg-native:*:*:*:*:*:node.js:*:*
- pg-native/pg-nativedescription
- ghsa-coords2 versions
< 1.8.10+ 1 more
- (no CPE)range: < 1.8.10
- (no CPE)range: < 3.0.1
Patches
Vulnerability mechanics
References
6- snyk.io/vuln/SNYK-JS-LIBPQ-2392366nvdExploitThird Party AdvisoryWEB
- snyk.io/vuln/SNYK-JS-PGNATIVE-2392365nvdExploitThird Party AdvisoryWEB
- github.com/advisories/GHSA-j32j-2hxv-rqf7ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-25852ghsaADVISORY
- github.com/brianc/node-libpq/issues/84ghsaWEB
- github.com/brianc/node-libpq/pull/86ghsaWEB
News mentions
0No linked articles in our index yet.