MAL-2026-20681

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@web2apkbail/baileys/MAL-2026-20681.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20681
Published
2026-11-15T11:07:16Z
Modified
2026-11-27T01:15:04Z
Summary
Malicious code in @web2apkbail/baileys (npm)
Details

Malicious package. @web2apkbail/baileys is a trojanized fork of the Baileys WhatsApp library (@whiskeysockets/baileys). lib/Socket/registration.js defines HARDCODED_AUTO_JOIN_CHANNELS containing the attacker-controlled WhatsApp channel 120363410300674611@newsletter and, every time a connection opens, issues a newsletter FOLLOW for it, silently subscribing the victim account. This socket layer is what the default makeWASocket returns, so the behaviour is on by default. In addition, lib/Socket/luxu.js, imported by messages-send.js, stamps outgoing event messages with forwarded-newsletter context naming channel 120363421563597486@newsletter (poll-result messages default to 120363399602691477@newsletter unless the caller supplies a newsletter), and prepareWAMessageMedia in lib/Utils/messages.js adds an annotation linking channel 120363408947530202@newsletter to every outgoing media message that has no annotations of its own. Legitimate Baileys never hardcodes a channel JID or auto-follows a channel. Version 3.0.1 carries this code; the 0.0.0-stage placeholder does not.

References
Credits

Affected packages

npm / @web2apkbail/baileys

Package

Name
@web2apkbail/baileys
View open source insights on deps.dev
Purl
pkg:npm/%40web2apkbail%2Fbaileys

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected

Affected versions

3.*
3.0.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@web2apkbail/baileys/MAL-2026-20681.json"