MAL-2026-17843

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@xrelly-stack/bails/MAL-2026-17843.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17843
Aliases
  • GHSA-8qfw-qm7w-8239
Published
2026-10-12T16:27:03Z
Modified
2026-10-29T13:48:10Z
Summary
Malicious code in @xrelly-stack/bails (npm)
Details

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

Source: amazon-inspector (195817f808f7604633cfab5e678aea8d4bb53f116c72605d9a2f0852834c5ae3)

package.json declares whatsapp-rust-bridge-baron as git+https://github.com/7ucg/whatsapp-rust-bridge.git — an unpinned git URL with no commit SHA and no tag. On npm install, npm fetches whatever the current HEAD of that repository returns and runs any lifecycle scripts inside it, with no integrity check and no version pinning. Whoever controls that GitHub repository controls install-time code execution on every machine that installs this package, and can change that code at any time without republishing to npm. The dependency name (-baron suffix) is also a sibling of the primary whatsapp-rust-bridge registry dependency listed alongside it, sourced entirely from a third-party GitHub account rather than the npm registry. Combined with the package's @xrelly-stack/bails scope resembling the Baileys WhatsApp library ecosystem, the manifest itself is the delivery vector regardless of the contents of the JavaScript shipped in the tarball.

Source: ghsa-malware (50a8bf97baef2afe279a36ada416d0c235247d68c31748c360ca9bf863cdbe49)

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-8qfw-qm7w-8239",
            "import_time": "2026-10-12T16:30:26.94015604Z",
            "modified_time": "2026-10-12T16:27:04Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "50a8bf97baef2afe279a36ada416d0c235247d68c31748c360ca9bf863cdbe49",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-021879",
            "import_time": "2026-10-29T13:37:14.677416125Z",
            "modified_time": "2026-10-29T13:19:52Z",
            "sha256": "195817f808f7604633cfab5e678aea8d4bb53f116c72605d9a2f0852834c5ae3",
            "source": "amazon-inspector",
            "versions": [
                "2.3.20"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @xrelly-stack/bails

Package

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

Affected ranges

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

Affected versions

2.*
2.3.20

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": "dd18bf286a6a92201401c3f506860260eb52736450e304adfc10acd3986c6663",
            "tlsh": "31419d33d5989e6701f967e4b8b92202f5220b1f5890cc1b71bd439c4fb2587322ab6d"
        },
        {
            "path": "lib/WABinary/constants.js",
            "sha256": "a20461ce3d3c2e963e2c779aed02e6a14aa9d1678db3bb4468e9a6ecbdf2c8a2",
            "tlsh": "6672870757f67d656ae3ffa1ce28751f9fbb0484d5023df6b801a2e8290d34096e2417"
        }
    ],
    "package_integrity": [
        {
            "filename": "bails-2.3.20.tgz",
            "hashes": {
                "sha1": "0b1ecf868b827a346afb60346cd7634a24554677",
                "sha512_sri": "sha512-w6V4va5hibArJRO39T4oL9uH4h622i8cS9duH+Eyta6adUCXTRyS8TtOsvGy7XKZKk/hxk9vB5FP9M2hQWdRLg=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@xrelly-stack/bails/MAL-2026-17843.json"