MAL-2026-18851

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@jiancodes/baileys/MAL-2026-18851.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18851
Published
2026-10-27T00:00:00Z
Modified
2026-11-09T23:15:22Z
Summary
Malicious code in @jiancodes/baileys (npm)
Details

@jiancodes/baileys 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. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363399266188954@newsletter, 120363402472932012@newsletter (stored as base64 strings), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).

Database specific
{
    "iocs": {
        "domains": [],
        "files": [
            {
                "digests": {
                    "sha256": "16f09ef72fd2072d905d72bf8d9dc0c91e682a77ca5ffc4c1a188224cc094582"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "707f3ba740bbfd904bf2f3500e9b8c8ecd71e8e674f0f03806e6c7e8355b6e5a"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "a32c4b7f3b110da4ac03b33260347179971b349f49c7b62bcf3c1c40f29cc848"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            }
        ],
        "ips": [],
        "urls": []
    }
}
References
Credits

Affected packages

npm / @jiancodes/baileys

Package

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

Affected ranges

Affected versions

1.*
1.7.3
1.7.4
2.*
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7
2.0.9

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/@jiancodes/baileys/MAL-2026-18851.json"