Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-46421: CWE-506: Embedded Malicious Code in cap-js @cap-js/sqlite

0
Critical
VulnerabilityCVE-2026-46421cvecve-2026-46421cwe-506
Published: 07/15/2026 (07/15/2026, 18:52:09 UTC)
Source: CVE Database V5
Vendor/Project: cap-js
Product: @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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

@cap-js/sqlite
pkg:npm/@cap-js/sqlite
Affected versions
=2.2.2
@cap-js/postgres
pkg:npm/@cap-js/postgres
Affected versions
=2.2.2
@cap-js/db-service
pkg:npm/@cap-js/db-service
Affected versions
=2.10.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/15/2026, 19:33:04 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses