Malicious code in @koezoet21/baileys (npm)
- GHSA-w522-5h5w-pf46
Description
@koezoet21/baileys 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. lib/Utils/messages-media.js exports loadBase, which makeNewsletterSocket (lib/Socket/newsletter.js) calls on every socket creation as loadBase(newsletterWMexQuery, QueryIds). 80 seconds later it fetches a channel list from a URL stored as base64 and, 5 seconds apart, calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each entry with the victim's authenticated session, swallowing errors. Nothing is logged and the README does not mention it. In 8.0.8 (lib/Utils/messages-media.js sha256 4f10d01fb6f281524eb40a042d28d32f0880a61010c1fb18c801ee322163b655) the URL decodes to hxxps://ch-koezoet[.]vercel[.]app/lyyn, which served 4 entries on 2026-11-06. Same behaviour as the PhantomSub family (MAL-2026-17342). Amazon Inspector described the same loadBase loop in @rixxcodex/baileys (MAL-2026-16483). --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/c9b54537cb2aecc4c638ec898079d5bb8c8148be/osv/malicious/npm/@koezoet21/baileys/MAL-2026-20807.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
@koezoet21/baileysnpm
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.