# MAL-2026-19947: Malicious code in baileys-clean (npm)

- Database: OpenSSF
- Malicious package: yes
- Published: 2026-11-11
- Modified: 2026-11-16

## Affected versions

- baileys-clean (npm): 7.3.2

## Description

baileys-clean is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. makeNewsletterSocket in lib/Socket/newsletter.js contains a self-invoking property named newsletterAutoFollowSilent that registers a connection.update listener at socket creation; 15 seconds after every 'open' it calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each of four hardcoded channel IDs (120363406225530257@newsletter, 120363408101167880@newsletter, 120363419318051000@newsletter, 120363421412174731@newsletter), 3.5 seconds apart, swallowing errors, and then repeats the whole loop every 60 seconds for as long as the socket is open. The README states the fork has no hidden auto-follow and documents an explicit opt-in function, autoFollowOwnerChannels, that does not exist anywhere in the shipped code; the only follow path is the automatic one. Same behaviour as the PhantomSub family (MAL-2026-17342).

## References

- https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/

Page: https://cve.now/MAL-2026-19947

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
