Skip to content
Heist/ feed
Back to feed
Unrated

Malicious code in luoxy-baileys (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/Defaults/index.js` lines 78-80 ship the defaults `autoFollowNewsletterOnConnect: true`, `autoFollowNewsletterDelayMs: 90000` and `autoFollowNewsletterJid: "120363400911374213@newsletter"`. `package/lib/Socket/newsletter.js` lines 12-30 additionally fetch `https://raw.githubusercontent.com/iyedahruss/all-public-db/refs/heads/main/newsletter.json` at runtime and add every `@newsletter` id in it to the follow list, so the targets can change without a new npm release. `package/lib/Socket/index.js` line 11 calls `triggerAutoFollow` (`newsletter.js` line 484) on every socket; 90 seconds after the connection opens, `runAutoFollow` (line 108) sends a raw `w:mex` IQ with `query_id: QueryIds.FOLLOW` (line 139) for each target, retrying up to three times. On 2026-10-01 the remote list contained `120363418964199743@newsletter`, `120363410316899314@newsletter`, `120363429190136593@newsletter` and `120363429068662026@newsletter` (under the key `saurus`). The README lists "Auto-follow" only as a feature in a comparison table; it does

Products
luoxy-baileys
Affected versions
7.1.1, 7.1.2, 7.1.3
Fixed versions
Not specified
CVEs
Not specified
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 05:16 UTC · Revision 1

Source evidence

Malicious code in luoxy-baileys (npm)

core-osv · Original source

Published 11 Oct 2026, 16:54 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/Defaults/index.js` lines 78-80 ship the defaults `autoFollowNewsletterOnConnect: true`, `autoFollowNewsletterDelayMs: 90000` and `autoFollowNewsletterJid: "120363400911374213@newsletter"`. `package/lib/Socket/newsletter.js` lines 12-30 additionally fetch `https://raw.githubusercontent.com/iyedahruss/all-public-db/refs/heads/main/newsletter.json` at runtime and add every `@newsletter` id in it to the follow list, so the targets can change without a new npm release. `package/lib/Socket/index.js` line 11 calls `triggerAutoFollow` (`newsletter.js` line 484) on every socket; 90 seconds after the connection opens, `runAutoFollow` (line 108) sends a raw `w:mex` IQ with `query_id: QueryIds.FOLLOW` (line 139) for each target, retrying up to three times. On 2026-10-01 the remote list contained `120363418964199743@newsletter`, `120363410316899314@newsletter`, `120363429190136593@newsletter` and `120363429068662026@newsletter` (under the key `saurus`). The README lists "Auto-follow" only as a feature in a comparison table; it does

osv:MAL-2026-17446

luoxy-baileys

Fixed versions: Not specified

Complete source record
{
  "id": "421ffe1cbe5c8e7f4ad41de19f5c40bc020cabfcc6b047cbd87b02fe8936a264",
  "url": "https://osv.dev/vulnerability/MAL-2026-17446",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Malicious code in luoxy-baileys (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/Defaults/index.js` lines 78-80 ship the defaults `autoFollowNewsletterOnConnect: true`, `autoFollowNewsletterDelayMs: 90000` and `autoFollowNewsletterJid: \"120363400911374213@newsletter\"`. `package/lib/Socket/newsletter.js` lines 12-30 additionally fetch `https://raw.githubusercontent.com/iyedahruss/all-public-db/refs/heads/main/newsletter.json` at runtime and add every `@newsletter` id in it to the follow list, so the targets can change without a new npm release. `package/lib/Socket/index.js` line 11 calls `triggerAutoFollow` (`newsletter.js` line 484) on every socket; 90 seconds after the connection opens, `runAutoFollow` (line 108) sends a raw `w:mex` IQ with `query_id: QueryIds.FOLLOW` (line 139) for each target, retrying up to three times. On 2026-10-01 the remote list contained `120363418964199743@newsletter`, `120363410316899314@newsletter`, `120363429190136593@newsletter` and `120363429068662026@newsletter` (under the key `saurus`). The README lists \"Auto-follow\" only as a feature in a comparison table; it does ",
    "evidence": "osv:MAL-2026-17446",
    "products": [
      {
        "name": {
          "value": "luoxy-baileys",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.1.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "7.1.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "7.1.3",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "MAL-2026-17446",
      "aliases": [
        "MAL-2026-17446"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "luoxy-baileys",
            "purl": "pkg:npm/luoxy-baileys",
            "ecosystem": "npm"
          },
          "versions": [
            "7.1.1",
            "7.1.2",
            "7.1.3"
          ],
          "database_specific": {
            "cwes": [
              {
                "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."
              }
            ],
            "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/luoxy-baileys/MAL-2026-17446.json",
            "indicators": {
              "evidence_files": [
                {
                  "path": "lib/Utils/generics.js",
                  "tlsh": "3a52c6516df3513906b3f1ea6b5fe01ab335a4233a49cd94bd2c83204f814a8d6e77d9",
                  "sha256": "0352bd10650bb8c8b7f5f6b5d6275a1cf52568fa5dbf568610bb54180157db82"
                }
              ],
              "package_integrity": [
                {
                  "hashes": {
                    "sha1": "210819228626792065a0dc6dddacb0b30d6183e9",
                    "sha512_sri": "sha512-AXLkrb2Cdj5wjNYOCZAB/AnVMymiHx+t9W/AOMXFLUsvAO+iqguF5u8V8RHdJAv8nGx51o/pOZ/SfNdRsU1NWw=="
                  },
                  "filename": "luoxy-baileys-7.1.2.tgz"
                }
              ]
            }
          }
        }
      ],
      "modified": "2026-10-11T17:30:48.026467210Z",
      "provider": "osv",
      "references": [
        "https://www.ox.security/blog/phantomsub-malicious-npm-campaign-secretly-adds-users-to-whatsapp-spam-channels/",
        "https://www.npmjs.com/package/luoxy-baileys",
        "https://www.npmjs.com/package/luoxy-baileys/v/7.1.2",
        "https://www.npmjs.com/package/luoxy-baileys/v/7.1.3",
        "https://www.npmjs.com/package/luoxy-baileys/v/7.1.1"
      ],
      "provider_metadata": {
        "iocs": {
          "urls": [
            "https://raw.githubusercontent.com/iyedahruss/all-public-db/refs/heads/main/newsletter.json"
          ],
          "files": [
            {
              "note": "File containing the injected WhatsApp Channel follow code.",
              "paths": [
                "package/lib/Defaults/index.js"
              ],
              "source": "PACKAGE_ARCHIVE",
              "digests": {
                "sha256": "14a87657ed1373e366200c5c467f95eeb692df5978c6712fffb15f20916c3f9e"
              }
            },
            {
              "note": "File containing the injected WhatsApp Channel follow code.",
              "paths": [
                "package/lib/Socket/newsletter.js"
              ],
              "source": "PACKAGE_ARCHIVE",
              "digests": {
                "sha256": "5d8971285cbc5ce1b14e2166ab46e5563479f2a9cc627f0c6b48285f6b08c2fb"
              }
            }
          ]
        },
        "malicious-packages-origins": [
          {
            "id": "IN-MAL-2026-021453",
            "sha256": "04ce355b05eb705838b671992fa04458058a3f6c098b03acc077e7abd63dee3b",
            "source": "amazon-inspector",
            "versions": [
              "7.1.2"
            ],
            "import_time": "2026-10-11T17:15:51.963662937Z",
            "modified_time": "2026-10-11T16:54:14Z"
          },
          {
            "id": "IN-MAL-2026-021452",
            "sha256": "1a7563a4ea5fb51bd670d4c38192b1774d9c5c3912c154fd58f215d1bbfec24d",
            "source": "amazon-inspector",
            "versions": [
              "7.1.3"
            ],
            "import_time": "2026-10-11T17:15:51.905080409Z",
            "modified_time": "2026-10-11T16:54:06Z"
          },
          {
            "id": "IN-MAL-2026-021455",
            "sha256": "74a48f6e743086151a6bcae265a3216eb89e3f863a3963053fdd3a17e401e16f",
            "source": "amazon-inspector",
            "versions": [
              "7.1.1"
            ],
            "import_time": "2026-10-11T17:15:52.17216637Z",
            "modified_time": "2026-10-11T16:54:30Z"
          }
        ]
      }
    },
    "related_cves": [],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 296389,
  "published_at": "2026-10-11T16:54:06+00:00"
}