CVE-2026-46421: CWE-506: Embedded Malicious Code in cap-js @cap-js/sqlite
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/[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. 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.
AI Analysis
Technical Summary
On April 29, 2026, compromised versions of cap-js packages @cap-js/[email protected], @cap-js/[email protected], and @cap-js/[email protected] were published containing embedded malicious code. This code harvested credentials accessible on the affected machine, including npm tokens, cloud provider credentials, SSH keys, and GitHub PATs, and attempted self-propagation. The vulnerability is classified as CWE-506 (Embedded Malicious Code). The vendor recommends upgrading to @cap-js/sqlite >= 2.4.0, @cap-js/postgres >= 2.3.0, and @cap-js/db-service >= 2.11.0. There are no known mitigations other than upgrading and credential rotation. The CVSS 4.0 score is 9.3 (critical), reflecting high impact and exploitability.
Potential Impact
If a compromised version was installed, all credentials accessible on the affected system are considered compromised, including npm tokens, cloud provider credentials, SSH keys, and GitHub personal access tokens. This can lead to unauthorized access to various services and systems. The malicious code also attempted self-propagation, increasing the risk of wider compromise.
Mitigation Recommendations
Upgrade to @cap-js/sqlite version 2.4.0 or later, @cap-js/postgres version 2.3.0 or later, and @cap-js/db-service version 2.11.0 or later. Rotate all credentials that may have been exposed if any compromised version was installed. No other workarounds or mitigations are currently known.
CVE-2026-46421: CWE-506: Embedded Malicious Code in cap-js @cap-js/sqlite
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/[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. 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.
CVSS v4.0
Score 9.3critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
On April 29, 2026, compromised versions of cap-js packages @cap-js/[email protected], @cap-js/[email protected], and @cap-js/[email protected] were published containing embedded malicious code. This code harvested credentials accessible on the affected machine, including npm tokens, cloud provider credentials, SSH keys, and GitHub PATs, and attempted self-propagation. The vulnerability is classified as CWE-506 (Embedded Malicious Code). The vendor recommends upgrading to @cap-js/sqlite >= 2.4.0, @cap-js/postgres >= 2.3.0, and @cap-js/db-service >= 2.11.0. There are no known mitigations other than upgrading and credential rotation. The CVSS 4.0 score is 9.3 (critical), reflecting high impact and exploitability.
Potential Impact
If a compromised version was installed, all credentials accessible on the affected system are considered compromised, including npm tokens, cloud provider credentials, SSH keys, and GitHub personal access tokens. This can lead to unauthorized access to various services and systems. The malicious code also attempted self-propagation, increasing the risk of wider compromise.
Mitigation Recommendations
Upgrade to @cap-js/sqlite version 2.4.0 or later, @cap-js/postgres version 2.3.0 or later, and @cap-js/db-service version 2.11.0 or later. Rotate all credentials that may have been exposed if any compromised version was installed. No other workarounds or mitigations are currently known.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-13T22:18:22.829Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a57dcf368715ace434afb5f
Added to database: 07/15/2026, 19:18:11 UTC
Last enriched: 07/15/2026, 19:33:04 UTC
Last updated: 07/15/2026, 19:49:03 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.