Is @keyv/postgres safe?
Version 6.0.0 of @keyv/postgres was compromised. Other versions are not flagged as malicious.
Do not install @keyv/postgres 6.0.0
CRITICALCompromised releases. Added to CyberXYZ 2026-08-04, OSV malicious-package feed (Google / OpenSSF).
@keyv/postgres is the PostgreSQL storage adapter for the keyv key-value store library. The package exposes a storage adapter API and does not exhibit install-time or import-time behavior that reads installer secrets, fetches and executes remote code, opens a backdoor, or relays caller data to an author-controlled destination. Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Reported by Amazon Inspector and GitHub Advisory Database via OSV.
- Malicious
- 6.0.0
- Move to
- 6.1.0 newest 6.x release, no known advisory
If one of these versions was installed, remove it and treat the credentials, tokens and SSH keys on that machine as exposed: rotate them. Check CI runners and container images that installed it too.
npm install @keyv/postgres@6.1.0
0 packages depend on it
an advisory here reaches each of them
Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.
Checked 2026-10-31 at 00:02 UTC. Updated continuously from NVD, GHSA, OSV and CNA feeds.