NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · npm

CVE-2026-46421: Supply chain compromise via malicious package versions (@cap-js/sqlite, @cap-js/postgres, @cap-js/db-service)

criticalGHSA-pvw4-cvr4-97p8

Impact On April 29, 2026, compromised versions of @cap-js/[email protected], @cap-js/[email protected], and @cap-js/[email protected] were published. The malicious packages harvested credentials and attempted self-propagation. If a compromised version was installed, all credentials accessible on that machine (npm tokens, cloud provider credentials, SSH keys, GitHub PATs) should be considered compromised.

Published May 20, 2026

Affected packages

@cap-js/sqlite

Ecosystem
npm
Affected
= 2.2.2
Fixed in
2.3.0
Check
npm ls @cap-js/sqlite

@cap-js/postgres

Ecosystem
npm
Affected
= 2.2.2
Fixed in
2.3.0
Check
npm ls @cap-js/postgres

@cap-js/db-service

Ecosystem
npm
Affected
= 2.10.1
Fixed in
2.11.0
Check
npm ls @cap-js/db-service

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

Impact

On April 29, 2026, compromised versions of @cap-js/[email protected], @cap-js/[email protected], and @cap-js/[email protected] were published. The malicious packages harvested credentials and attempted self-propagation. If a compromised version was installed, all credentials accessible on that machine (npm tokens, cloud provider credentials, SSH keys, GitHub PATs) should be considered compromised.

Patches

Upgrade to @cap-js/sqlite >= 2.4.0, @cap-js/postgres >= 2.3.0, @cap-js/db-service >= 2.11.0. If a compromised version was ever installed, rotate all affected credentials.

Workarounds

No workarounds.

Credited to patricebender, chgeo.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology