{"id":"MAL-2026-20679","summary":"Malicious code in @dancihuy/baileys (npm)","details":"Malicious package. `@dancihuy/baileys` is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). `lib/Defaults/index.js` defines `DEFAULT_AUTO_FOLLOW_CHANNELS` containing the hardcoded attacker-controlled WhatsApp channel 120363413556377369@newsletter, and `lib/Socket/newsletter.js` issues an authenticated `w:mex` newsletter FOLLOW mutation for it on the first successful connection, silently subscribing the victim account. The behaviour is enabled by default. In addition, `lib/Socket/luxu.js`, imported by `messages-send.js`, stamps outgoing event and poll-result messages with forwarded-newsletter context naming channel 120363421563597486@newsletter. Legitimate Baileys never hardcodes a channel JID or auto-follows a channel. Version 0.0.1 carries this code; the `0.0.0-stage` placeholder does not.","modified":"2026-11-27T01:15:04.380349013Z","published":"2026-11-13T14:19:11Z","database_specific":{"iocs":{}},"references":[{"type":"WEB","url":"https://wormsign.io/portfolio/@dancihuy/baileys/"}],"affected":[{"package":{"name":"@dancihuy/baileys","ecosystem":"npm","purl":"pkg:npm/%40dancihuy%2Fbaileys"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["0.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@dancihuy/baileys/MAL-2026-20679.json"}}],"schema_version":"1.9.2","credits":[{"name":"wormsign","contact":["https://x.com/w0rmsign"],"type":"FINDER"}]}