cvelo
P2 · HighMalware

Malicious code in @baileys-md/baileys (npm)

  • GHSA-53hh-ghw6-cjf4

Description

@baileys-md/baileys is a fork of the Baileys WhatsApp Web library. In version 12.2.0, makeNewsletterSocket in lib/Socket/newsletter.js starts a timer that, 80 seconds after the socket is created, sends the WhatsApp w:mex FOLLOW query for the channels 120363419781122699@newsletter and 120363388692253922@newsletter through the user's authenticated session, with errors swallowed and without telling the user. Releases 12.2.1 to 12.3.2 ship the same block commented out, so they are not listed. Same behaviour as the PhantomSub family (MAL-2026-17342). --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/f8bd377e5c522af8e1a7cf92b0cd17dcdba7a45f/osv/malicious/npm/@baileys-md/baileys/MAL-2026-18807.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

  • @baileys-md/baileysnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.