Thirteen releases of the @violetix/baileys WhatsApp library are malware, and npm has removed the code.
GitHub reviewed and published the malware advisory on 20 November 2026. npm removed every original release the same day.
What happened
A GitHub reviewed advisory marks releases of @violetix/baileys, a WhatsApp API library, as malicious code.
- The advisory covers 13 versions, from
0.3.18to0.5.7. - It gives no payload details. Its guidance says every computer that ran the package is fully compromised.
- npm replaced the package with a
0.0.1-securityholding release on 20 November 2026 and removed the original code. - The code was unavailable for inspection, so this page reports only advisory and registry facts.
Affected versions
- The advisory flags
0.3.18through0.5.7, published between 7 October 2026 and 13 November 2026. - The registry now serves
0.0.1-security, a placeholder held by npm support.
Indicators of compromise
- The advisory lists no hashes, domains, addresses or file names.
- The removed code was unavailable for inspection, so no indicators can be added here.
How to check
Run this in each project that uses the package.
npm ls @violetix/baileys
Check lockfile history and past build logs for any install of @violetix/baileys between 7 October 2026 and 13 November 2026. A clean install today cannot rule out earlier exposure.
What to do now
- Treat every computer that installed or ran the package as fully compromised.
- Rotate all secrets and keys stored on it, from a different computer.
- Remove the package and rebuild from a clean package set.
- Review account and cloud logs for use of the exposed credentials.
What Vigilance would show
These examples show an install hold and the corresponding owner report.
Example install message
Vigilance blocked `@violetix/baileys` 0.5.7. This version is too new or changed in a way Vigilance must check first.
Example owner report
Bad update
@violetix/baileys 0.5.7
A WhatsApp bot library carried malware. GitHub says every computer that ran it must be treated as fully compromised.
No security team? See who reads the alert.
Frequently asked questions
Is @violetix/baileys the real WhatsApp Baileys library?
No. It is a separate npm package that uses the Baileys name. The advisory covers @violetix/baileys only.
Can I still install the malicious versions?
No. npm replaced the package with a security holding release and removed the original code.
What did the malware do?
The advisory gives no technical detail. npm removed the code, so it cannot be inspected. The advisory guidance treats affected computers as fully compromised.
Sources
Send this page to the person who looks after AI at your company.