MAL-2026-20340

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@xz-bails/baileys/MAL-2026-20340.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-20340
Published
2026-11-23T03:59:24Z
Modified
2026-11-23T04:30:05Z
Summary
Malicious code in @xz-bails/baileys (npm)
Details

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

Source: amazon-inspector (ff217bd2a1260e646df994e1d5a14ad54c79b81083e90755647c7ee2ee3c6ad3)

package.json declares libsignal as github:tenka-san/libsignal-node with no commit SHA, tag, or integrity check. On npm install, this resolves to whatever the mutable HEAD of that personal GitHub account's branch currently returns, and any lifecycle scripts inside the fetched tarball execute on the installer's machine. The reference points to an individual personal account rather than the upstream signalapp organization or the WhiskeySockets parent of this Baileys fork, so whoever controls that GitHub repository controls code that runs on every installer of this package. This is an off-registry dependency source for a transitive that provides cryptographic/signal-protocol functionality.

Database specific
{
    "malicious-packages-origins": [
        {
            "id": "IN-MAL-2026-023036",
            "import_time": "2026-11-23T04:15:11.686734608Z",
            "modified_time": "2026-11-23T03:59:24Z",
            "sha256": "94ceda91294932acad7c9fd43ad1ca3032936682606a272a9ee6cc49ba9a1c50",
            "source": "amazon-inspector",
            "versions": [
                "6.0.10"
            ]
        },
        {
            "id": "IN-MAL-2026-023038",
            "import_time": "2026-11-23T04:15:12.040728188Z",
            "modified_time": "2026-11-23T03:59:39Z",
            "sha256": "ff217bd2a1260e646df994e1d5a14ad54c79b81083e90755647c7ee2ee3c6ad3",
            "source": "amazon-inspector",
            "versions": [
                "6.0.11"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @xz-bails/baileys

Package

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

Affected ranges

Affected versions

6.*
6.0.10
6.0.11

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"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "package.json",
            "sha256": "747db4004eb9c4f4548b1382dbdf90aeec52b700664a50111a3cf10c64617932",
            "tlsh": "ca612024cd18cea309c526dda4bd4202a1b45a039d85fc1cb3a847ac8f5d25f36b9f7d"
        }
    ],
    "package_integrity": [
        {
            "filename": "baileys-6.0.10.tgz",
            "hashes": {
                "sha1": "92aebb99715e8ecaa5bcc8dd8df9e450f6caab21",
                "sha512_sri": "sha512-155hUIOJgc9ZoGn7J42M0XknvrP0/metQVzxjhT9ulVdlRCapfEDPdNzQfZV26VmoI5o7JlKG4YemRF5dEI8Pg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@xz-bails/baileys/MAL-2026-20340.json"