Live threats

All CVEs / Libpq Project

CVE-2022-25852Libpq Project Libpq

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.3%
probability of exploitation in 30 days · percentile 70
Auth required
No
Published
Jun 17, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-704
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Libpq.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm libpq < 1.8.10 1.8.10 npm install libpq@1.8.10
npm pg-native < 3.0.1 3.0.1 npm install pg-native@3.0.1

Per OSV / GitHub Advisories (GHSA-j32j-2hxv-rqf7). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
libpq_projectlibpqall
pg-native_projectpg-nativeall

Official sources

References

Links published by the sources. Open them with care.

  • snyk.io Exploit Third Party Advisory
  • snyk.io Exploit Third Party Advisory