MAL-2026-17287

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@chatunity/baileys/MAL-2026-17287.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17287
Aliases
  • GHSA-2vxg-pmhf-2c8r
Published
2026-09-29T21:42:03Z
Modified
2026-10-13T07:45:14Z
Summary
Malicious code in @chatunity/baileys (npm)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (acc8739717b3768c51a56da3a23b85b253b0bc08a2ab4a447e278d055c8a2e70)

This package presents itself as a fork of the Baileys WhatsApp library. On every successful login through makeWASocket, lib/Socket/socket.js invokes autoSubscribeToDefaultNewsletterIfRequired(), which calls followNewsletterWMex with the hardcoded JID '120363418582531215@newsletter' — an author-controlled WhatsApp newsletter. The behavior is undocumented in the README, persists across sessions via a flag (basedbysam) stored in the credentials file, and uses the consumer's authenticated WhatsApp session to perform an account action (following a channel) without consent. Any bot or application built on top of this library will silently enroll its WhatsApp account as a follower of the author's channel. Additionally, package.json pins the critical libsignal cryptographic dependency to an unpinned GitHub branch (github:realvare/libsignal), meaning the owner of that repo can ship arbitrary crypto code to installers at any time without a version bump.

Source: ghsa-malware (91f51e9df3ce8c75b411231fdaa15fe49a42b616a168e6c84363229c5519b40f)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-020676",
            "import_time":  "2026-09-29T22:18:23.489328793Z",
            "modified_time":  "2026-09-29T21:42:03Z",
            "sha256":  "8f15bfd7bf2ef13da7abc8337b67a3f48091b256bdbf54396953f5eda6beb945",
            "source":  "amazon-inspector",
            "versions":  [
                "3.2.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-020677",
            "import_time":  "2026-09-29T22:18:23.575980739Z",
            "modified_time":  "2026-09-29T21:42:16Z",
            "sha256":  "b6d06d6b516b21b0ac6ed45e5653dca243695a2c17326669ec58498e4c9bcf45",
            "source":  "amazon-inspector",
            "versions":  [
                "3.2.1"
            ]
        },
        {
            "id":  "GHSA-2vxg-pmhf-2c8r",
            "import_time":  "2026-10-12T16:30:26.882542328Z",
            "modified_time":  "2026-10-12T15:38:25Z",
            "ranges":  [
                {
                    "events":  [
                        {
                            "introduced":  "0"
                        }
                    ],
                    "type":  "SEMVER"
                }
            ],
            "sha256":  "91f51e9df3ce8c75b411231fdaa15fe49a42b616a168e6c84363229c5519b40f",
            "source":  "ghsa-malware"
        },
        {
            "id":  "IN-MAL-2026-021468",
            "import_time":  "2026-10-13T07:32:01.660403784Z",
            "modified_time":  "2026-10-13T06:54:51Z",
            "sha256":  "acc8739717b3768c51a56da3a23b85b253b0bc08a2ab4a447e278d055c8a2e70",
            "source":  "amazon-inspector",
            "versions":  [
                "2.0.9"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @chatunity/baileys

Package

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

Affected ranges

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

Affected versions

2.*
2.0.9
3.*
3.2.0
3.2.1

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    },
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "path":  "package.json",
            "sha256":  "8310e1fed81eaad39f0f498da09bd9923c01e3dae31995e61552bd08d7a755a3",
            "tlsh":  "7c51de23c948cf2309f263dab5780211f56a075f6590cc8f31b8577c8f739a22656f2a"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "baileys-3.2.0.tgz",
            "hashes":  {
                "sha1":  "6862f4e4fc200758793340c161667ec7fe550cc8",
                "sha512_sri":  "sha512-Dxr3E4msRjGxaW0bjvLUqSkk3BEIHh8i9+X424s4nIwgk37QfVmYU2yoXaD7Pd5uTqD2D9BZXRHM/oK2rB0PZg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@chatunity/baileys/MAL-2026-17287.json"