MAL-2026-17846

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@yudzxml/baileys/MAL-2026-17846.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-17846
Aliases
  • GHSA-qh6w-wgpq-j344
Published
2026-10-12T16:31:25Z
Modified
2026-10-29T14:30:32Z
Summary
Malicious code in @yudzxml/baileys (npm)
Details

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

Source: amazon-inspector (629ff06ada2390b75e4ba41304b30289746455bba454c455d04d7743f6998974)

This package is a fork of the Baileys WhatsApp Web library. a static rule matched on keyword co-occurrence in lib/Utils/messages-media.js: require('child_process'), require('os'), require('http')/require('https'), and POST/GET/fetch( calls, with the only cited literal URL being https://mmg.whatsapp.net (WhatsApp's own media server, which is the expected destination for a Baileys media utility). The evidence quotes do not name any non-first-party attacker endpoint, do not show environment-variable scraping, and do not show reads of installer-secret paths (~/.ssh, ~/.aws, ~/.npmrc, browser stores). The primitive co-occurrence in messages-media.js is the shape you would expect from a legitimate WhatsApp media upload/download implementation (child_process for ffmpeg/thumbnail generation, http/https/fetch for WhatsApp media endpoints, os for tmpdir). Because this is a fork of a widely used upstream library, and forks are a common vehicle for covert modifications (e.g., undocumented actions using the caller's WhatsApp session), a reviewer should diff this fork against upstream Baileys to confirm messages-media.js only talks to mmg.whatsapp.net/WhatsApp infrastructure, and that no other file in the package performs credential harvest, undocumented auto-follow/subscribe, or exfiltration using the caller's session. Without corroborating evidence of installer harm, keyword co-occurrence alone is not sufficient to publish a block.

Source: ghsa-malware (96357918fec8e046fe049ec94c614ab988e412532ace70beeb64d737533c3a30)

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-qh6w-wgpq-j344",
            "import_time": "2026-10-12T17:27:28.155257321Z",
            "modified_time": "2026-10-12T16:31:26Z",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "96357918fec8e046fe049ec94c614ab988e412532ace70beeb64d737533c3a30",
            "source": "ghsa-malware"
        },
        {
            "id": "IN-MAL-2026-022061",
            "import_time": "2026-10-29T14:14:22.18332556Z",
            "modified_time": "2026-10-29T13:43:42Z",
            "sha256": "90a75e9fc920aa057f63fbd9a2aae28edb8aec497852bacfe69a411c36f4f049",
            "source": "amazon-inspector",
            "versions": [
                "7.4.2"
            ]
        },
        {
            "id": "IN-MAL-2026-022015",
            "import_time": "2026-10-29T14:14:17.599227344Z",
            "modified_time": "2026-10-29T13:37:44Z",
            "sha256": "2e474ec401ee81c51e7c524630008beb55d288568ffc1f8388d48b776362aebb",
            "source": "amazon-inspector",
            "versions": [
                "7.4.1"
            ]
        },
        {
            "id": "IN-MAL-2026-022016",
            "import_time": "2026-10-29T14:14:17.702437112Z",
            "modified_time": "2026-10-29T13:37:52Z",
            "sha256": "629ff06ada2390b75e4ba41304b30289746455bba454c455d04d7743f6998974",
            "source": "amazon-inspector",
            "versions": [
                "7.4.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @yudzxml/baileys

Package

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

Affected ranges

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

Affected versions

7.*
7.4.0
7.4.1
7.4.2

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"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files": [
        {
            "path": "lib/Utils/messages-media.js",
            "sha256": "a4736c035b637d9a24f6be70870ea00d322252670c3319b56161cfea3975c47e",
            "tlsh": "b1f2e85a1ef624350397b0b9979f551eb222d0073109dea9bf9c93106f8613c9af3bd8"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@yudzxml/baileys/MAL-2026-17846.json"