MAL-2026-16473

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sea-baileys/MAL-2026-16473.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-16473
Published
2026-09-23T09:07:47Z
Modified
2026-09-23T09:30:04Z
Summary
Malicious code in sea-baileys (npm)
Details

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

Source: amazon-inspector (2aaf4b5ddb859270a86aa6d21df680ed66fb0622434317747a6f7275ad9a3d60)

sea-baileys is a fork of the Baileys WhatsApp Web library. Its package.json remaps the libsignal import specifier to npm:@otaxayun/libsignal-node@latest — an unrelated maintainer's package pinned to the mutable latest dist-tag rather than a fixed version or integrity hash. lib/Signal/libsignal.js routes the installer's Signal Protocol identity private key, signed pre-key private key, session records and sender keys through this dependency, so whatever code @otaxayun/libsignal-node resolves to at install time handles the consumer's WhatsApp cryptographic identity and message stream. Because the tag is mutable and owned by a third party outside the sea-baileys publisher, a single publish under that name replaces the crypto implementation on every subsequent npm install. Separately, lib/Utils/messages-media.js's prepareWAMessageMedia unconditionally attaches a hardcoded annotations block referencing the newsletter JID 120363409928671192@newsletter ("HOSHINO AI INFORMATION") to every outgoing media message when the caller does not supply annotations, silently modifying consumer-generated WhatsApp payloads to advertise the fork author's channel.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-020484",
            "import_time":  "2026-09-23T09:20:27.731672478Z",
            "modified_time":  "2026-09-23T09:07:47Z",
            "sha256":  "2aaf4b5ddb859270a86aa6d21df680ed66fb0622434317747a6f7275ad9a3d60",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.2"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / sea-baileys

Package

Affected ranges

Affected versions

1.*
1.0.2

Database specific

cwes
[
    {
        "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":  "79f563fb480dea671b0fd4db872c30e71685ce8728879e59f39ef695c9af8a1c",
            "tlsh":  "9b51da25cc2cceb314c626eaa9ba0101507841a34d95fc1c376c0bad4f5e2af31b9b7e"
        },
        {
            "path":  "lib/Utils/messages.js",
            "sha256":  "875a52973d9ed9e5d01758930d29e9bb134731ee9df69d9520c651739ca2beb7",
            "tlsh":  "8303835899f70c2e065ba096f75b7060b234d4076208fa22facc83d56fc95a89bf37d5"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "sea-baileys-1.0.2.tgz",
            "hashes":  {
                "sha1":  "d56c3207036eaf99417b24f7596549b47158781e",
                "sha512_sri":  "sha512-2CxPsgowrkbdLYDPJoAI6W7a+i0HyNe2zglPtBOxbIykOoPEXPmMt65OFlQwONby6EzWeN5SD72jx1de+o05xQ=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/sea-baileys/MAL-2026-16473.json"