{
  "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"
          }
        ],
        "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/canta-baileys/MAL-2026-18632.json"
      },
      "package": {
        "ecosystem": "npm",
        "name": "canta-baileys",
        "purl": "pkg:npm/canta-baileys"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "1.1.13"
      ]
    }
  ],
  "aliases": [
    "GHSA-475j-858m-v8ww"
  ],
  "credits": [
    {
      "contact": [
        "https://cyberxyz.io"
      ],
      "name": "CyberXYZ",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "iocs": {
      "domains": [],
      "files": [
        {
          "digests": {
            "sha256": "a2cdd6f2aed395c2740f2f8596a5421e9af383655ebc6af2958e02196138b129"
          },
          "paths": [
            "lib/Socket/newsletter.js"
          ]
        }
      ],
      "ips": [],
      "urls": [
        "https://raw.githubusercontent.com/FallEzz/baileys-corp/refs/heads/main/news.json"
      ]
    },
    "malicious-packages-origins": [
      {
        "id": "GHSA-475j-858m-v8ww",
        "import_time": "2026-11-04T17:18:35.43392541Z",
        "modified_time": "2026-11-04T16:37:19Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "39bbccdb770394ed9a63f4cc591ec9bea455a4fc92a142368188b14b8d4ca0ed",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "canta-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 and then MUTE, so the channel goes unnoticed, for a channel list downloaded at runtime from https://raw.githubusercontent.com/FallEzz/baileys-corp/refs/heads/main/news.json, using the victim's 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 (39bbccdb770394ed9a63f4cc591ec9bea455a4fc92a142368188b14b8d4ca0ed)\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-18632",
  "modified": "2026-11-05T05:15:05.026398389Z",
  "published": "2026-10-26T00:00:00Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-475j-858m-v8ww"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/canta-baileys"
    },
    {
      "type": "WEB",
      "url": "https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "Malicious code in canta-baileys (npm)"
}