{"id":"CVE-2026-46421","published":"2026-07-15T18:52:09Z","modified":"2026-07-15T19:22:50Z","title":"Supply chain compromise via malicious package versions (@cap-js/sqlite, @cap-js/postgres, @cap-js/db-service)","vendor":"cap-js","product":"@cap-js/sqlite","tier":"tail","description":{"text":"The SAP Cloud Application Programming Model is a tool for building enterprise-grade cloud applications, and cap-js/cds-dbs is the monorepo for SQL database services for that tool. On April 29, 2026, compromised versions of `@cap-js/sqlite@2.2.2`, `@cap-js/postgres@2.2.2`, and `@cap-js/db-service@2.10.1` 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. User should 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. No known workarounds are available.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00524,"percentile":0.45343,"provenance":"source"},"cwes":[{"id":"CWE-506","name":"Embedded Malicious Code"}],"references":[{"url":"https://github.com/cap-js/cds-dbs/security/advisories/GHSA-pvw4-cvr4-97p8","tags":["x_refsource_CONFIRM"]},{"url":"https://me.sap.com/notes/3747787","tags":["x_refsource_MISC"]},{"url":"https://www.sap.com/documents/2026/05/8203a8b9-4d7f-0010-bca6-c68f7e60039b.html","tags":["x_refsource_MISC"]},{"url":"https://www.stepsecurity.io/blog/a-mini-shai-hulud-has-appeared","tags":["x_refsource_MISC"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":9.07},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"cap-js","affectedVersions":[{"vendor":"cap-js","product":"@cap-js/sqlite","versions":["= 2.2.2"]},{"vendor":"cap-js","product":"@cap-js/postgres","versions":["= 2.2.2"]},{"vendor":"@cap-js/db-service","product":"@cap-js/db-service","versions":["= 2.10.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-07-15T19:22:41.730582Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@cap-js/sqlite","vulnerableRanges":[">=2.2.2, <2.3.0"],"patched":["2.3.0"],"from":["GHSA-pvw4-cvr4-97p8"],"provenance":"source"},{"ecosystem":"npm","package":"@cap-js/postgres","vulnerableRanges":[">=2.2.2, <2.3.0"],"patched":["2.3.0"],"from":["GHSA-pvw4-cvr4-97p8"],"provenance":"source"},{"ecosystem":"npm","package":"@cap-js/db-service","vulnerableRanges":[">=2.10.1, <2.11.0"],"patched":["2.11.0"],"from":["GHSA-pvw4-cvr4-97p8"],"provenance":"source"}],"summary":{"text":"Malicious versions of the npm packages @cap-js/sqlite (2.2.2), @cap-js/postgres (2.2.2) and @cap-js/db-service (2.10.1), part of the SAP Cloud Application Programming Model's cds-dbs database services, were published with embedded malicious code. Any machine that installed one of these versions can have its accessible credentials, such as npm tokens, cloud provider credentials, SSH keys and GitHub tokens, harvested, and the malware can attempt to spread, with no authentication or user interaction required beyond installing the affected package.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:24:25Z"},"euvd":{"id":"EUVD-2026-44765","exploited":false,"provenance":"source"}}