Skip to content
Heist/ feed
Back to feed
Unrated

Malicious code in @developmentyora/baileyss (npm)

Type: advisorySources: OSV

This package is a fork of the Baileys WhatsApp Web library (npm) and belongs to the "PhantomSub" family described by OX Security in September 2026: the publisher injected code that, without the installer asking, uses the installer's own authenticated WhatsApp session to subscribe that account to WhatsApp Channels (newsletters) the publisher chose, by sending the WhatsApp `w:mex` FOLLOW query (query_id 7871414976211147) for each target channel JID. `package/lib/Socket/newsletter.js` lines 62-103 (cited line 68: `QueryIds.FOLLOW`) run in the body of `makeNewsletterSocket`, so they fire whenever a socket is created: 90 seconds later, and then at 5-second intervals, the code sends FOLLOW queries for four channel JIDs, each stored as a base64 literal decoded with `Buffer.from(..., "base64")`: `120363427594836299@newsletter`, `120363425875407481@newsletter`, `120363407288464467@newsletter` and `120363426218991285@newsletter`. There is no opt-out and the behavior is not documented. Line numbers refer to version 1.0.0. Static review of the published tarball(s) found no code that sends WhatsApp credentials or session keys off-host, no install-time payload (the only install hook is Baileys' stock Node.js version check in `engine-requirements.js`), and no persistence; the payload runs when an application creates a WhatsApp socket with the library. The harm is the covert use of the victim's account to inflate the publisher's channel subscribers. SHA-256 of the published npm tarball(s): 1

Products
@developmentyora/baileyss
Affected versions
1.0.0
Fixed versions
Not specified
CVEs
Not specified
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 19:29 UTC · Revision 1

Source evidence

Malicious code in @developmentyora/baileyss (npm)

core-osv · Original source

Published 16 Oct 2026, 01:09 UTC

This package is a fork of the Baileys WhatsApp Web library (npm) and belongs to the "PhantomSub" family described by OX Security in September 2026: the publisher injected code that, without the installer asking, uses the installer's own authenticated WhatsApp session to subscribe that account to WhatsApp Channels (newsletters) the publisher chose, by sending the WhatsApp `w:mex` FOLLOW query (query_id 7871414976211147) for each target channel JID. `package/lib/Socket/newsletter.js` lines 62-103 (cited line 68: `QueryIds.FOLLOW`) run in the body of `makeNewsletterSocket`, so they fire whenever a socket is created: 90 seconds later, and then at 5-second intervals, the code sends FOLLOW queries for four channel JIDs, each stored as a base64 literal decoded with `Buffer.from(..., "base64")`: `120363427594836299@newsletter`, `120363425875407481@newsletter`, `120363407288464467@newsletter` and `120363426218991285@newsletter`. There is no opt-out and the behavior is not documented. Line numbers refer to version 1.0.0. Static review of the published tarball(s) found no code that sends WhatsApp credentials or session keys off-host, no install-time payload (the only install hook is Baileys' stock Node.js version check in `engine-requirements.js`), and no persistence; the payload runs when an application creates a WhatsApp socket with the library. The harm is the covert use of the victim's account to inflate the publisher's channel subscribers. SHA-256 of the published npm tarball(s): 1

osv:MAL-2026-17439

@developmentyora/baileyss

Fixed versions: Not specified

Complete source record
{
  "id": "b96f56e0f46382b5f89a183d86b63f62dbb6f08b548bb6d3738e95c3b5c4798c",
  "url": "https://osv.dev/vulnerability/MAL-2026-17439",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Malicious code in @developmentyora/baileyss (npm)",
    "summary": "This package is a fork of the Baileys WhatsApp Web library (npm) and belongs to the \"PhantomSub\" family described by OX Security in September 2026: the publisher injected code that, without the installer asking, uses the installer's own authenticated WhatsApp session to subscribe that account to WhatsApp Channels (newsletters) the publisher chose, by sending the WhatsApp `w:mex` FOLLOW query (query_id 7871414976211147) for each target channel JID. `package/lib/Socket/newsletter.js` lines 62-103 (cited line 68: `QueryIds.FOLLOW`) run in the body of `makeNewsletterSocket`, so they fire whenever a socket is created: 90 seconds later, and then at 5-second intervals, the code sends FOLLOW queries for four channel JIDs, each stored as a base64 literal decoded with `Buffer.from(..., \"base64\")`: `120363427594836299@newsletter`, `120363425875407481@newsletter`, `120363407288464467@newsletter` and `120363426218991285@newsletter`. There is no opt-out and the behavior is not documented. Line numbers refer to version 1.0.0. Static review of the published tarball(s) found no code that sends WhatsApp credentials or session keys off-host, no install-time payload (the only install hook is Baileys' stock Node.js version check in `engine-requirements.js`), and no persistence; the payload runs when an application creates a WhatsApp socket with the library. The harm is the covert use of the victim's account to inflate the publisher's channel subscribers. SHA-256 of the published npm tarball(s): 1",
    "evidence": "osv:MAL-2026-17439",
    "products": [
      {
        "name": {
          "value": "@developmentyora/baileyss",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.0.0",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "MAL-2026-17439",
      "aliases": [
        "GHSA-v8xh-mr86-2fpq",
        "MAL-2026-17439"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "@developmentyora/baileyss",
            "purl": "pkg:npm/%40developmentyora/baileyss",
            "ecosystem": "npm"
          },
          "versions": [
            "1.0.0"
          ],
          "database_specific": {
            "cwes": [
              {
                "name": "Embedded Malicious Code",
                "cweId": "CWE-506",
                "description": "The product contains code that appears to be malicious in nature."
              }
            ],
            "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@developmentyora/baileyss/MAL-2026-17439.json"
          }
        }
      ],
      "modified": "2026-10-16T01:45:13.844459201Z",
      "provider": "osv",
      "references": [
        "https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/",
        "https://www.npmjs.com/package/@developmentyora/baileyss",
        "https://github.com/advisories/GHSA-v8xh-mr86-2fpq"
      ],
      "provider_metadata": {
        "iocs": {
          "files": [
            {
              "note": "File containing the injected WhatsApp Channel follow code.",
              "paths": [
                "package/lib/Socket/newsletter.js"
              ],
              "source": "PACKAGE_ARCHIVE",
              "digests": {
                "sha256": "c4ea3feaf21d0bc29302bb1a66557b709ce9caf66538d88d302fab00b1f49a0f"
              }
            }
          ]
        },
        "malicious-packages-origins": [
          {
            "id": "GHSA-v8xh-mr86-2fpq",
            "ranges": [
              {
                "type": "SEMVER",
                "events": [
                  {
                    "introduced": "0"
                  }
                ]
              }
            ],
            "sha256": "61d053d8d7d05715f1099bf3d620177886fda31a4c45f5c21d687b2fcd9abb39",
            "source": "ghsa-malware",
            "import_time": "2026-10-16T01:31:19.913968765Z",
            "modified_time": "2026-10-16T01:09:29Z"
          }
        ]
      }
    },
    "related_cves": [],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 336944,
  "published_at": "2026-10-16T01:09:29+00:00"
}