MAL-2026-17901

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@xatancchii/natabaileys/MAL-2026-17901.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17901
Aliases
  • GHSA-cgq9-cff6-pf33
Published
2026-10-16T13:02:31Z
Modified
2026-10-29T13:48:10Z
Summary
Malicious code in @xatancchii/natabaileys (npm)
Details

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

Source: amazon-inspector (262bd24b77d6bc63e4f9b139d3688b3956f85cd25b9b23613abc807841944578)

The package is a fork of Baileys published under @xatancchii that remaps the libsignal import to a third-party scoped package via "libsignal": "npm:@bellaxchuu/libsignal-node@latest" in package.json. The scope @bellaxchuu matches neither the publisher of this package (@xatancchii) nor the upstream project (WhiskeySockets/libsignal-node), and the version is pinned to the mutable @latest dist-tag with no integrity check. The aliased dependency supplies the Signal protocol crypto primitives and is loaded on every require of the package through lib/Signal/libsignal.js and lib/Utils/crypto.js (SessionCipher / SessionBuilder / SessionRecord paths). Each npm install fetches whatever @bellaxchuu/libsignal-node currently publishes under @latest, and that code is executed in-process whenever the Baileys fork is imported, including from inside session handling for WhatsApp Web connections where decrypted message plaintext and long-lived session keys are available.

Source: ghsa-malware (f5ae1bb8eedff775ab95af3b382114e74ca3097cf294a34db67087e99cabd900)

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": "GHSA-cgq9-cff6-pf33",
            "import_time": "2026-10-16T13:27:21.634100039Z",
            "modified_time": "2026-10-16T13:02:31Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "f5ae1bb8eedff775ab95af3b382114e74ca3097cf294a34db67087e99cabd900",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-021911",
            "import_time": "2026-10-29T13:37:16.32418237Z",
            "modified_time": "2026-10-29T13:24:11Z",
            "sha256": "262bd24b77d6bc63e4f9b139d3688b3956f85cd25b9b23613abc807841944578",
            "source": "amazon-inspector",
            "versions": [
                "1.2.5"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @xatancchii/natabaileys

Package

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

Affected ranges

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

Affected versions

1.*
1.2.5

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": "9b51f05b76872327c903fcb20495311f0b9aaca202bf68bdc55b8baeb5430e0f",
            "tlsh": "0581ec34cd58cea30ac626e9a5bd0042a4b558539ec1fc1cb35947ac8f0e24f72b9b2d"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@xatancchii/natabaileys/MAL-2026-17901.json"