MAL-2026-20287

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@izi-coder/baileys/MAL-2026-20287.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20287
Published
2026-11-20T03:51:08Z
Modified
2026-11-20T04:30:24Z
Summary
Malicious code in @izi-coder/baileys (npm)
Details

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

Source: amazon-inspector (c476c49d67a7760e7893b185a53a3b9de7cc6c005b5480493eb82f66bde8bac1)

This unofficial fork of Baileys declares a production dependency sourced directly from a GitHub repository with no commit pin: "libsignal": "github:Cogils/libsignal-node" in package.json. npm install resolves that source off-registry, fetches whatever the branch tip currently holds, and runs any lifecycle scripts inside it. The referenced repository is owned by a third party (Cogils), unrelated to the upstream WhiskeySockets/Baileys publisher, so whoever controls that repo controls code executed on the installer's machine at install time. The package also presents low-trust provenance: it is published under @izi-coder as an unofficial Baileys fork, the manifest's repository URL points at a Telegram channel rather than a source host, and lib/index.js prints a hostile ASCII banner and Telegram self-promo links on import.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-022943",
            "import_time": "2026-11-20T04:13:20.223441398Z",
            "modified_time": "2026-11-20T03:51:31Z",
            "sha256": "3513ff5be65c15710fa6832c00fbc6ec01649e3aaf6ed35eec61bee50b7f9d7f",
            "source": "amazon-inspector",
            "versions": [
                "2.0.5"
            ]
        },
        {
            "id": "IN-MAL-2026-022940",
            "import_time": "2026-11-20T04:13:20.068635651Z",
            "modified_time": "2026-11-20T03:51:08Z",
            "sha256": "51f81653444a13ce5226e627ea6e288de0b4fb5b05a7944140471af36941fdc0",
            "source": "amazon-inspector",
            "versions": [
                "6.0.9"
            ]
        },
        {
            "id": "IN-MAL-2026-022942",
            "import_time": "2026-11-20T04:13:20.165607815Z",
            "modified_time": "2026-11-20T03:51:24Z",
            "sha256": "c476c49d67a7760e7893b185a53a3b9de7cc6c005b5480493eb82f66bde8bac1",
            "source": "amazon-inspector",
            "versions": [
                "6.0.10"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @izi-coder/baileys

Package

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

Affected ranges

Affected versions

2.*
2.0.5
6.*
6.0.9
6.0.10

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "package.json",
            "sha256": "ac04f7db3bcef1d5bd8bf8062b032ac3a81ef812018ae10cdcc8e0cee11b14b4",
            "tlsh": "9a91eb34ce18ce630ac526e9a9bd0141a87959039ec5fc1cb35807ac8f4e15f71b9b3d"
        }
    ],
    "package_integrity": [
        {
            "filename": "baileys-2.0.5.tgz",
            "hashes": {
                "sha1": "a94bedaf1a5edbae69bb7e0628bc1036dbddf0ba",
                "sha512_sri": "sha512-T0+HSnDkAID7Bp0x5CmKvBWi9N8jpr03EKF/FM2QjO4hz2IpYdrJ2ivWWUQrPvFvNM6m5gLq5ohNw9NHzpiTWw=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@izi-coder/baileys/MAL-2026-20287.json"