Version 2.2.2 of @cap-js/postgres was compromised (credential stealer); other versions are not flagged as malicious. CyberXYZ Proxy blocks the affected versions. It also has 1 known vulnerability, the worst rated CRITICAL.
Supply chain compromise of legitimate SAP packages published by threat actor "cloudmtabot@gmail.com" impersonating SAP toolchain maintainers. All four compromised packages share the same fingerprint: setup.mjs (4.4 KB) and execution.js (11.1 MB) bundled in the tarball, with a preinstall hook of "node setup.mjs". Notably, setup.mjs is explicitly excluded from the package.json 'files' allowlist yet is still shipped in the tarball — a manifest evasion technique intended to hide the malicious file from allowlist inspection while still executing it on install. execution.js (11.1 MB) is anomalously large for these packages and is consistent with an embedded payload or exfiltration binary. Packages were published 2026-04-29T09:55Z.
@cap-js/postgres is the PostgreSQL database adapter for SAP's Cloud Application Programming (CAP) model. Its presence in CI/CD pipelines gives the payload access to database credentials and build environment secrets.
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 GitHub Advisory Database via OSV.
mitre ttp
T1056
// versions and what to do
Malicious
2.2.2
Move to
2.3.3 newest 2.x release, no known advisory
3.1.3 current 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.
Version 2.2.2 of @cap-js/postgres was compromised (credential stealer). Other versions are not flagged as malicious.
Does @cap-js/postgres have known vulnerabilities?
Yes. CyberXYZ records 1 known vulnerability for @cap-js/postgres (npm), the worst rated CRITICAL. They are GHSA-pvw4-cvr4-97p8.
Which version of @cap-js/postgres should I use?
Use 2.3.3 or a later release that is not named as malicious. Versions named on this report as malicious must not be installed.
How do I check @cap-js/postgres before installing?
Search @cap-js/postgres in CyberXYZ Check at https://cyberxyz.io/check?q=%40cap-js%2Fpostgres. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.
Checked 2026-11-14 at 05:10 UTC. The most recent advisory here was published 2026-05-20. Updated continuously from NVD, GHSA, OSV and CNA feeds.