# GHSA-GRG7-4C3W-PV5J: Malicious code in @xzvbailss/baileys (npm)

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

## Affected versions

- @xzvbailss/baileys (npm): 1.0.0
- @xzvbailss/baileys (npm): 5.0.0
- @xzvbailss/baileys (npm): 6.0.0

## Description

@xzvbailss/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. makeNewsletterSocket in lib/Socket/newsletter.js declares a hardcoded list of channel IDs (120363430764800148@newsletter) and a setTimeout that, 2.5 minutes after every socket creation, calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each entry with the victim's authenticated session, 5 seconds apart, swallowing errors. Nothing is shown to the user. Version 6.0.0, published 2026-11-11T19:16Z, keeps the same channel but hides its ID as a base64 string (MTIwMzYzNDMwNzY0ODAwMTQ4QG5ld3NsZXR0ZXI=, decoded at load) and moves the trigger: on every connection.update with connection 'open' it waits 90 seconds and sends the same FOLLOW query, logging failures only at debug level. Same behaviour as the PhantomSub family (MAL-2026-17342). lib/Socket/luxu.js (sha256 cd8e9549dbf382dc7dd32a9c1cd2eb98c8db2bd5a97a0df9a77e4062429053e3) is byte-identical to the file of the same name in @poucode/baileys (MAL-2026-18873) and contains the literal string "POUCODE", so the two forks share a toolkit. The package.json repository field is a Telegram link (https://t.me/JustRxVz), not a source repository. The same publisher's unscoped xzvbailss is MAL-2026-18702.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/b93291e5361509bcfdaf6e283b76dbafbdca62ae/osv/malicious/npm/@xzvbailss/baileys/MAL-2026-19946.json))

## References

- https://github.com/ossf/malicious-packages/blob/b93291e5361509bcfdaf6e283b76dbafbdca62ae/osv/malicious/npm/@xzvbailss/baileys/MAL-2026-19946.json
- https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels
- https://github.com/advisories/GHSA-grg7-4c3w-pv5j

Page: https://cve.now/GHSA-GRG7-4C3W-PV5J

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