# GHSA-H858-X9M7-XQ5C: Malicious code in dinocode-baileys (npm)

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

## Affected versions

- dinocode-baileys (npm): 9.0.23

## Description

Malicious package. `dinocode-baileys` is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). In `lib/Socket/messages-recv.js` it hides two channel JIDs as character-code arrays (120363428355171197@newsletter, 120363428984357510@newsletter). When the connection opens, it waits 30 seconds, then sends a newsletter FOLLOW followed by a MUTE for each one, silently subscribing the victim account to attacker-controlled WhatsApp channels and hiding their notifications. Legitimate Baileys never hardcodes channel JIDs. 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/7a58398413e7adba0aefb462c1e3bce07cf0b4d7/osv/malicious/npm/dinocode-baileys/MAL-2026-20429.json))

## References

- https://github.com/ossf/malicious-packages/blob/7a58398413e7adba0aefb462c1e3bce07cf0b4d7/osv/malicious/npm/dinocode-baileys/MAL-2026-20429.json
- https://wormsign.io/portfolio/dinocode-baileys
- https://github.com/advisories/GHSA-h858-x9m7-xq5c

Page: https://cve.now/GHSA-H858-X9M7-XQ5C

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