db-rake (npm) · Malicious Code
Affects db-rakeSource GCVE Database
Malicious package : remove db-rake and rotate any secrets on hosts that installed it.
Data as of 20 Aug 2026, 14:38 UTC
Malicious package
Published to npm · OSV MAL-2026-6540
What to do
Remove db-rake from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmdb-rake | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
The db-rake npm package versions 1.0.1 and 1.0.2 contain malicious code that silently installs and executes an attacker-controlled package named db-dx-connector. This secondary package is fetched dynamically without user awareness or logging, enabling arbitrary code execution within the consumer's environment. The malicious behavior is deliberately obfuscated and designed as a dropper, posing a severe risk of full system compromise. Removal of db-rake alone may not eliminate all malicious artifacts, and secret keys on affected systems should be rotated immediately.