Is @mastra/pg safe?
Version 1.13.1 of @mastra/pg was compromised. Other versions are not flagged as malicious.
Do not install @mastra/pg 1.13.1
CRITICALCompromised releases. Added to CyberXYZ 2026-06-17, OSV malicious-package feed (Google / OpenSSF).
The package was found to contain malicious code or consuming dependency that contains malicious code 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
- 1.13.1
- Move to
- 1.33.0 newest 1.x release, no known advisory
1.34.0 is newer but was published less than 4 hours ago. The CyberXYZ Proxy holds a new release for 4 hours before it installs without an alert, so it is not named here yet.
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 @mastra/pg@1.33.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:01 UTC. Updated continuously from NVD, GHSA, OSV and CNA feeds.