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.