cvelo
P2 · HighMalware

Malicious code in thinuzbaileys (npm)

  • GHSA-3pwp-w2q7-699w

Description

Malicious package. `thinuzbaileys` is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). `lib/Socket/socket.js` defines AUTO_FOLLOW_CHANNEL_JID = 120363425542933159@newsletter and, 3 seconds after the connection opens, sends a newsletter FOLLOW (xwa2_newsletter_join_v2) for it, suppressing 'already subscribed' errors. This silently subscribes the victim account to the channel. The README states that developer auto-follow newsletter scripts have been completely stripped out. Legitimate Baileys never hardcodes or auto-follows a channel. Version 0.0.0-stage is a placeholder stub without this code. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/6ea90cf5e44b70b8488f243016d8d1e6ae38428d/osv/malicious/npm/thinuzbaileys/MAL-2026-20816.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

  • thinuzbaileysnpm

    No versions listed

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.