npm package report

Is pg safe?

pg (npm) has 1 known vulnerability, the worst rated CRITICAL. Upgrade to 7.0.2 or later to clear it. No malicious-package signal is recorded.

// reach

17 direct dependencies

2 carry known advisories, worst HIGH

393 packages depend on it

an advisory here reaches each of them

Create a free accountfor every dependency path, dependent and what to upgrade
// ai model usage

Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.


cvss
9.8
critical

CVSS v3.0 base score out of 10

epss
10.3%
high

chance of exploitation in 30 days, 96th percentile of all CVEs

xyz score
5.8
medium

CyberXYZ composite out of 10

fig. 01 — GHSA-wc9v-mj63-m9g5, the advisory selected below

// 1 advisories

Affected versions of pg contain a remote code execution vulnerability that occurs when the remote database or query specifies a crafted column name.

Full advisory text at GitHub advisory or NVD.

// cvss v3.0 vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
// questions
Is pg safe to install?

CyberXYZ does not call a package safe in absolute terms. It records 1 known vulnerability for pg (npm), the worst rated CRITICAL, and no malicious-package signal. Whether it is acceptable depends on the version you run.

Does pg have known vulnerabilities?

Yes. CyberXYZ records 1 known vulnerability for pg (npm), the worst rated CRITICAL. They are GHSA-wc9v-mj63-m9g5.

Which version of pg should I use?

7.0.2 or later clears every advisory recorded for pg (npm). Check the release you pick before installing it.

How do I check pg before installing?

Search pg in CyberXYZ Check at https://cyberxyz.io/check?q=pg. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.


Checked 2026-11-17 at 14:00 UTC. The most recent advisory here was published 2018-07-24. Updated continuously from NVD, GHSA, OSV and CNA feeds.

Think a verdict here is wrong? Tell us — we respond within 2 business days.