MAL-2026-18819

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

@devil-fight/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) 120363389012094856@newsletter, 120363423890054787@newsletter (stored as base64 strings) and a list downloaded at runtime from https://raw.githubusercontent.com/VinzzOfficial/Baileys/main/WAProto/id-channel/idch.json, https://raw.githubusercontent.com/VinzzOfficial/Baileys/main/WAProto/id-channel/idgc.json, using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).

Database specific
{
    "iocs": {
        "domains": [
            "raw.githubusercontent.com"
        ],
        "files": [
            {
                "digests": {
                    "sha256": "12b9673cc3c5ce5d53b183120e329e568ae784864a2ecd1ed4df20207e6844f9"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "3aaa626475d58c17bb6f872424f3cf154ec48ee408760a4c4d997d5deeff128b"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "504e723a407b68dc8ec3686d138aa5ea862e073b1473bd77b4fe929e55068e46"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "6622cec5fa21c6378173e34433905055b23bb962cb73a07af8a248092b7ea744"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "88608570874bd5370d63ed559417ac60b90d1308e6de03e2a67347576f86d313"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "8dccb3c72e08e0d603196ee3752e0e7da8cddbc830c6383daadc5f387155c8a8"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            },
            {
                "digests": {
                    "sha256": "f44558021a692cfc17f5e2bcf5874f14f714d8dc38b69a0a7dfdbfadb5aae8c0"
                },
                "paths": [
                    "lib/Socket/newsletter.js"
                ]
            }
        ],
        "ips": [],
        "urls": [
            "https://raw.githubusercontent.com/VinzzOfficial/Baileys/main/WAProto/id-channel/idch.json",
            "https://raw.githubusercontent.com/VinzzOfficial/Baileys/main/WAProto/id-channel/idgc.json"
        ]
    }
}
References
Credits

Affected packages

npm / @devil-fight/baileys

Package

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

Affected ranges

Affected versions

1.*
1.0.0
1.0.1
1.0.3
1.0.4
1.0.5
1.0.6
1.0.7

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/@devil-fight/baileys/MAL-2026-18819.json"