Malicious npm package @chatbridge-it/baileys — full host compromise on install; rotate all secrets
Severity: critical · Patch status: no-fix-needed · Since 2026-12-02
GitHub published a malware advisory (GHSA-2h7h-3rq9-2cvx) for the npm package @chatbridge-it/baileys, a typosquat-style clone of the Baileys WhatsApp library. All versions (= 0) are flagged as containing embedded malicious code (CWE-506) with no patched version available. Any machine with the package installed or running should be considered fully compromised, with full control potentially handed to an outside entity. Roughly 988 downloads per month indicate limited but real exposure. Removal of the package alone cannot be assumed to remove all malicious software planted during installation. Affected users must rotate all secrets and keys from a clean machine and rebuild compromised hosts.
What to do
- Immediately rotate all secrets, keys, and credentials stored on any machine where the package was installed, using a clean device
- Remove the package and rebuild/reimage affected machines rather than trusting cleanup
- Audit systems for the package and any persistence or follow-on malware it may have installed
- Block @chatbridge-it/baileys in dependency resolution and review lockfiles and CI caches for it
Sources
All live incidents on Threat Watch