MAL-2026-20429: Malicious code in dinocode-baileys (npm)

Published Nov 20, 2026
·
Updated

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.

Affected Software

1 affected component
npm/dinocode-baileys*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/dinocode-baileys to a version that resolves this vulnerability.

    Fixed in 0.0.0-stage

Event History

Nov 20, 2026
Advisory Published
via OSV·10:59 AM
Data Sourced
via OSV·10:59 AM
DescriptionAffected Software

Frequently Asked Questions

1

Which installations are affected?

Installations of dinocode-baileys containing the modified lib/Socket/messages-recv.js behavior are affected. The 0.0.0-stage version is described as a placeholder stub and does not contain this code.

2

What must happen for the malicious behavior to run?

A connection using the package must open. The code then waits 30 seconds before sending FOLLOW and MUTE actions for the two embedded WhatsApp newsletter channel JIDs.

3

What is the impact to the WhatsApp account?

The connected account is silently subscribed to two attacker-controlled WhatsApp channels, and notifications for those channels are muted. The hardcoded channel identifiers are 120363428355171197@newsletter and 120363428984357510@newsletter.

4

How can I check whether an account may already have been affected?

Review the account's followed WhatsApp newsletter channels for the two embedded channel JIDs and check whether they are muted. Also inspect the installed package's lib/Socket/messages-recv.js for hidden character-code arrays that resolve to those JIDs and connection-open logic that delays 30 seconds before FOLLOW and MUTE actions.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203