MAL-2026-19947

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/baileys-clean/MAL-2026-19947.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-19947
Published
2026-11-11T00:00:00Z
Modified
2026-11-16T05:15:03Z
Summary
Malicious code in baileys-clean (npm)
Details

baileys-clean 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 contains a self-invoking property named newsletterAutoFollowSilent that registers a connection.update listener at socket creation; 15 seconds after every 'open' it calls newsletterWMexQuery(id, QueryIds.FOLLOW) for each of four hardcoded channel IDs (120363406225530257@newsletter, 120363408101167880@newsletter, 120363419318051000@newsletter, 120363421412174731@newsletter), 3.5 seconds apart, swallowing errors, and then repeats the whole loop every 60 seconds for as long as the socket is open. The README states the fork has no hidden auto-follow and documents an explicit opt-in function, autoFollowOwnerChannels, that does not exist anywhere in the shipped code; the only follow path is the automatic one. Same behaviour as the PhantomSub family (MAL-2026-17342).

Database specific
{
    "iocs": {
        "domains": [],
        "files": [
            {
                "digests": {
                    "sha256": "07a99b774f85b823142e996ee48613244c7a502e3e107dd89ba4fbeea8e13b1c"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            }
        ],
        "ips": [],
        "urls": []
    }
}
References
Credits

Affected packages

npm / baileys-clean

Package

Name
baileys-clean
View open source insights on deps.dev
Purl
pkg:npm/baileys-clean

Affected ranges

Affected versions

7.*
7.3.2

Database specific

cwes
[
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/baileys-clean/MAL-2026-19947.json"