baileeys npm package: malicious code compromises hosts and secrets (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-11-23
On 2026-11-23, the GitHub Advisory Database published GHSA-rwxp-x66q-qqh5 for the npm package baileeys, identifying version 1.0.0 as malware containing embedded malicious code (CWE-506). The advisory states that any computer where the package was installed or running should be considered fully compromised, and that full control may have been given to an outside entity. No patched versions exist, and the advisory says improvements are not accepted because the package is malware. The package has only about 8 downloads per month, but the impact is severe for any affected host because secrets and keys may have been exposed. There is no public statement of in-the-wild exploitation, and no CVE was assigned. Remediation is removal plus credential rotation from a separate clean system and forensic review.
What to do
- Treat any machine that installed or ran baileeys 1.0.0 as fully compromised; isolate it from the network and do not use it to rotate credentials.
- From a separate clean computer, immediately rotate all secrets, API keys, tokens, SSH keys, and credentials that were stored on or accessible from affected hosts.
- Remove baileeys from projects, global npm installs, CI caches, and container images; block the package/version in registries or dependency policies.
- Audit lockfiles, build logs, and CI/CD systems for baileeys 1.0.0 and review for unauthorized access or persistence.
- Perform forensic review of affected hosts before returning them to service; reinstalling the OS may be necessary if compromise is confirmed.
Sources
All live incidents on Threat Watch