Search

Find a vulnerability

Search criteria

    Related vulnerabilities

    MAL-2026-18991 (GHSA-XJ4J-9X5W-5J5Q)

    Vulnerability from ossf_malicious_packages – Published: 2026-10-27 00:00 – Updated: 2026-11-26 18:22 – Source website
    Malicious package
    Summary
    Malicious code in mod-baileys (npm)
    Affected package
    Ecosystem Package Versions
    npm mod-baileys
    Affected: All versions (semver)
    1.0.11.0.21.0.32.0.0
    Details

    mod-baileys is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363349457176430@newsletter, 120363400706010828@newsletter, 120363421052027188@newsletter, 120363423257544642@newsletter (stored as base64 strings), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).

    GitHub Advisory Database GHSA-xj4j-9x5w-5j5q Reported 2026-11-26 17:35

    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.

    Indicators
    Type Indicator Hashes
    File lib/Socket/newsletter.js
    sha256 150207b4d922340f0261f8bf551979f790f82e8db5441558c727f955f12cb373
    CWE
    • CWE-506 - Embedded Malicious Code

    {
      "affected": [
        {
          "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"
              }
            ]
          },
          "package": {
            "ecosystem": "npm",
            "name": "mod-baileys"
          },
          "ranges": [
            {
              "events": [
                {
                  "introduced": "0"
                }
              ],
              "type": "SEMVER"
            }
          ],
          "versions": [
            "1.0.1",
            "1.0.2",
            "1.0.3",
            "2.0.0"
          ]
        }
      ],
      "aliases": [
        "GHSA-xj4j-9x5w-5j5q"
      ],
      "credits": [
        {
          "contact": [
            "https://cyberxyz.io"
          ],
          "name": "CyberXYZ",
          "type": "FINDER"
        }
      ],
      "database_specific": {
        "iocs": {
          "domains": [],
          "files": [
            {
              "digests": {
                "sha256": "150207b4d922340f0261f8bf551979f790f82e8db5441558c727f955f12cb373"
              },
              "paths": [
                "lib/Socket/newsletter.js"
              ]
            },
            {
              "digests": {
                "sha256": "6f47a94fd530c4c1c201eb0149fc86d69c947ee864d8c2375b80e26c8d192112"
              },
              "paths": [
                "lib/Socket/newsletter.js"
              ]
            }
          ],
          "ips": [],
          "urls": []
        },
        "malicious-packages-origins": [
          {
            "id": "GHSA-xj4j-9x5w-5j5q",
            "import_time": "2026-11-26T18:21:04.356589689Z",
            "modified_time": "2026-11-26T17:35:34Z",
            "ranges": [
              {
                "events": [
                  {
                    "introduced": "0"
                  }
                ],
                "type": "SEMVER"
              }
            ],
            "sha256": "d24a3f44225c0f8f08961cb1654a382e47c811a39c79f6dc5c2987de525dd38d",
            "source": "ghsa-malware"
          }
        ]
      },
      "details": "mod-baileys is a fork of the Baileys WhatsApp Web library that silently subscribes the installer\u0027s own WhatsApp account to WhatsApp Channels chosen by the publisher. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363349457176430@newsletter, 120363400706010828@newsletter, 120363421052027188@newsletter, 120363423257544642@newsletter (stored as base64 strings), using the victim\u0027s authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: ghsa-malware (d24a3f44225c0f8f08961cb1654a382e47c811a39c79f6dc5c2987de525dd38d)\nAny 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.\n",
      "id": "MAL-2026-18991",
      "modified": "2026-11-26T18:22:29.340115396Z",
      "published": "2026-10-27T00:00:00Z",
      "references": [
        {
          "type": "PACKAGE",
          "url": "https://www.npmjs.com/package/mod-baileys"
        },
        {
          "type": "WEB",
          "url": "https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"
        },
        {
          "type": "ADVISORY",
          "url": "https://github.com/advisories/GHSA-xj4j-9x5w-5j5q"
        }
      ],
      "schema_version": "1.7.4",
      "summary": "Malicious code in mod-baileys (npm)"
    }