MAL-2026-20950

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/davexbaileys/MAL-2026-20950.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20950
Published
2026-11-27T18:41:46Z
Modified
2026-12-02T03:45:05Z
Summary
Malicious code in davexbaileys (npm)
Details

davexbaileys is a modified copy of the Baileys WhatsApp Web library (@whiskeysockets/baileys) that silently subscribes the user's WhatsApp account to channels chosen by its author. When an application that imports it creates a socket with makeWASocket, makeNewsletterSocket in lib/Socket/newsletter.js waits 90 seconds, decodes a base64-encoded URL, hxxps://raw[.]githubusercontent[.]com/pesh-254/Davexpair/main/newsletter[.]json, downloads a list of channel IDs from it and sends the newsletter FOLLOW query for each on the user's authenticated session, discarding every error (versions 1.1.2 to 2.5.24). Versions 2.5.27 and 2.5.28 instead follow the hardcoded 120363426943699042@newsletter, set as the default autoFollowNewsletterJid, when the connection first opens; the README mentions neither behaviour. The npm account davextech also published davebaileys (MAL-2026-18960), which fetches the same list.

Database specific
{
    "iocs":  {
        "files":  [
            {
                "digests":  {
                    "sha256":  "857402c958abff6fce0f1607b18a36e83ae5415052fff0dcb6b68079522a5803"
                },
                "note":  "1.1.2-1.1.5, 2.5.8-2.5.14: fetches the channel list from the base64-encoded GitHub URL 90 s after socket creation and follows each entry.",
                "paths":  [
                    "lib/Socket/newsletter.js"
                ],
                "source":  "PACKAGE_ARCHIVE"
            },
            {
                "digests":  {
                    "sha256":  "905cad502760c9d9c6efe5d19d54ce0d89860212e91b3adb3003461b78828b8b"
                },
                "note":  "1.4.1-1.4.5: same remote-list follow.",
                "paths":  [
                    "lib/Socket/newsletter.js"
                ],
                "source":  "PACKAGE_ARCHIVE"
            },
            {
                "digests":  {
                    "sha256":  "9657090200632febc22d650a6b51074814ed56b1bbc869f7b7a5feb8bb3ec671"
                },
                "note":  "2.5.15-2.5.24: same remote-list follow.",
                "paths":  [
                    "lib/Socket/newsletter.js"
                ],
                "source":  "PACKAGE_ARCHIVE"
            },
            {
                "digests":  {
                    "sha256":  "024385fced81c2124c59c21eaf284c600b38b5ab257c2facd73532a7a3e9e84a"
                },
                "note":  "2.5.27: follows the default autoFollowNewsletterJid 120363426943699042@newsletter on first connection open.",
                "paths":  [
                    "lib/Socket/newsletter.js"
                ],
                "source":  "PACKAGE_ARCHIVE"
            },
            {
                "digests":  {
                    "sha256":  "8deda84b9ca110706dd880814f6e56fc2347594beabf4a06471eff97bb9ec2f7"
                },
                "note":  "2.5.28: follows the default autoFollowNewsletterJid 120363426943699042@newsletter on first connection open.",
                "paths":  [
                    "lib/Socket/newsletter.js"
                ],
                "source":  "PACKAGE_ARCHIVE"
            }
        ],
        "urls":  [
            "https://raw.githubusercontent.com/pesh-254/Davexpair/main/newsletter.json"
        ]
    }
}
Credits

Affected packages

npm / davexbaileys

Package

Affected ranges

Affected versions

1.*
1.1.2
1.1.3
1.1.4
1.1.5
1.4.1
1.4.3
1.4.4
1.4.5
2.*
2.5.8
2.5.9
2.5.10
2.5.11
2.5.12
2.5.13
2.5.14
2.5.15
2.5.16
2.5.17
2.5.18
2.5.19
2.5.20
2.5.21
2.5.22
2.5.23
2.5.24
2.5.27
2.5.28

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/davexbaileys/MAL-2026-20950.json"