Description
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.
Published: 2026-07-15
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The SAP Cloud Application Programming Model is a framework for building enterprise cloud applications, and cap‑js/cds-dbs houses the SQL database services needed by that tool. On April 29, 2026, the npm registry received malicious versions of @cap‑js/sqlite 2.2.2, @cap‑js/postgres 2.2.2, and @cap‑js/db‑service 2.10.1. These compromised packages automatically harvest every credential obtainable from the host—such as npm tokens, cloud‑provider keys, SSH keys, and GitHub personal access tokens—and then attempt to self‑propagate. As a result, any system that installed one of these versions should consider all locally stored credentials compromised. The vulnerability is a classic example of supply‑chain attack and is identified as CWE‑506.

Affected Systems

Affected products include @cap‑js/db‑service version 2.10.1, @cap‑js/postgres version 2.2.2, and @cap‑js/sqlite version 2.2.2. The recommended safe versions are @cap‑js/db‑service 2.11.0 or newer, @cap‑js/postgres 2.3.0 or newer, and @cap‑js/sqlite 2.4.0 or newer.

Risk and Exploitability

The CVSS score of 9.3 denotes high severity. The EPSS score of less than 1% indicates a low probability of exploitation at the moment, but the vulnerability is not listed in the CISA KEV catalog. The likely attack vector is the npm package registry; any installation of the compromised version without integrity checks enables credential theft. Because the vulnerability involves automatic credential harvesting, the risk to exposed systems remains high despite the low current exploitation probability.

Generated by OpenCVE AI on July 31, 2026 at 03:03 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update @cap‑js/sqlite to version 2.4.0 or later, @cap‑js/postgres to 2.3.0 or later, and @cap‑js/db‑service to 2.11.0 or later.
  • Rotate all credentials that could have been exposed, including npm tokens, cloud provider credentials, SSH keys, and GitHub Personal Access Tokens.
  • Scan the environment for residual malicious package artifacts and enforce strict runtime package integrity checks, such as using lockfiles or package‑integrity verification.

Generated by OpenCVE AI on July 31, 2026 at 03:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-pvw4-cvr4-97p8 Supply chain compromise via malicious package versions (@cap-js/sqlite, @cap-js/postgres, @cap-js/db-service)
History

Thu, 23 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Cap-js
Cap-js db-service
Cap-js postgres
Cap-js sqlite
Vendors & Products Cap-js
Cap-js db-service
Cap-js postgres
Cap-js sqlite

Wed, 15 Jul 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 15 Jul 2026 19:15:00 +0000

Type Values Removed Values Added
Description 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.
Title Supply chain compromise via malicious package versions (@cap-js/sqlite, @cap-js/postgres, @cap-js/db-service)
Weaknesses CWE-506
References
Metrics cvssV4_0

{'score': 9.3, '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'}


Subscriptions

Cap-js Db-service Postgres Sqlite
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-15T19:22:50.086Z

Reserved: 2026-05-13T22:18:22.829Z

Link: CVE-2026-46421

cve-icon Vulnrichment

Updated: 2026-07-15T19:22:46.587Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T03:15:04Z

Weaknesses