mal-2026-15918
Vulnerability from ossf_malicious_packages
Published
2026-09-03 18:09
Modified
2026-10-12 16:32
Summary
Malicious code in @modss/baileys (npm)
Details

@modss/baileys is a renamed fork of the Baileys WhatsApp Web library published 2026-09-01 and 2026-09-02 under a scope created the same day. lib/Socket/newsletter.js sets NEWSLETTER_LIST_URL to https://raw.githubusercontent.com/Dayyy-19/Anu/main/Newsletter.json. On every connection.update with connection === 'open', autoFollowConfiguredNewsletters() fetches that list and issues an executeWMexQuery FOLLOW for each id on the user's own authenticated WhatsApp session, caching followed ids in session/followed-newsletters.json. An Indonesian comment in the file explains that the list lives on GitHub so channels can be added or removed without redeploying the code, i.e. the follow targets are publisher-controlled at runtime. All three published versions carry the identical handler. The package also aliases its libsignal dependency to @modss/libsignal, which pkgwarden read as a plain rename with no malicious content. No credential or session-key theft was observed, and the dead-drop URL was not requested by pkgwarden. All versions were fetched from the npm registry and read by hand on 2026-09-03. Same remote-dead-drop shape as MAL-2026-15819 (@mrlegendbot/baileys) and MAL-2026-13932 (my-auto-follow).


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

Source: ghsa-malware (f380df417118802ce37118bae231cadcd5f41d20c60ac6ad830d9f62a53c8601)

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.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.

{
  "affected": [
    {
      "database_specific": {
        "cwes": [
          {
            "cweId": "CWE-506",
            "description": "The product contains code that appears to be malicious in nature.",
            "name": "Embedded Malicious Code"
          }
        ]
      },
      "package": {
        "ecosystem": "npm",
        "name": "@modss/baileys"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "1.0.0",
        "1.0.1",
        "1.0.2"
      ]
    }
  ],
  "aliases": [
    "GHSA-4c9v-m7qm-2mpr"
  ],
  "credits": [
    {
      "contact": [
        "https://pkgwarden.com"
      ],
      "name": "pkgwarden",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "iocs": {
      "files": [
        {
          "digests": {
            "sha256": "935e65a1525ca7d4b11ca19d4aed36f92fd99dd9ddd20aca295f92134892f46c"
          },
          "note": "runtime dead-drop fetch and forced follow loop (digest from 1.0.2)",
          "paths": [
            "lib/Socket/newsletter.js"
          ],
          "source": "PACKAGE_ARCHIVE"
        }
      ],
      "urls": [
        "https://raw.githubusercontent.com/Dayyy-19/Anu/main/Newsletter.json"
      ]
    },
    "malicious-packages-origins": [
      {
        "id": "GHSA-4c9v-m7qm-2mpr",
        "import_time": "2026-10-12T16:30:26.92721009Z",
        "modified_time": "2026-10-12T15:31:43Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "f380df417118802ce37118bae231cadcd5f41d20c60ac6ad830d9f62a53c8601",
        "source": "ghsa-malware"
      }
    ]
  },
  "details": "@modss/baileys is a renamed fork of the Baileys WhatsApp Web library published 2026-09-01 and 2026-09-02 under a scope created the same day. lib/Socket/newsletter.js sets NEWSLETTER_LIST_URL to https://raw.githubusercontent.com/Dayyy-19/Anu/main/Newsletter.json. On every connection.update with connection === \u0027open\u0027, autoFollowConfiguredNewsletters() fetches that list and issues an executeWMexQuery FOLLOW for each id on the user\u0027s own authenticated WhatsApp session, caching followed ids in session/followed-newsletters.json. An Indonesian comment in the file explains that the list lives on GitHub so channels can be added or removed without redeploying the code, i.e. the follow targets are publisher-controlled at runtime. All three published versions carry the identical handler. The package also aliases its libsignal dependency to @modss/libsignal, which pkgwarden read as a plain rename with no malicious content. No credential or session-key theft was observed, and the dead-drop URL was not requested by pkgwarden. All versions were fetched from the npm registry and read by hand on 2026-09-03. Same remote-dead-drop shape as MAL-2026-15819 (@mrlegendbot/baileys) and MAL-2026-13932 (my-auto-follow).\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: ghsa-malware (f380df417118802ce37118bae231cadcd5f41d20c60ac6ad830d9f62a53c8601)\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-15918",
  "modified": "2026-10-12T16:32:21.487656009Z",
  "published": "2026-09-03T18:09:54Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/@modss/baileys"
    },
    {
      "type": "ADVISORY",
      "url": "https://osv.dev/vulnerability/MAL-2026-15819"
    },
    {
      "type": "ADVISORY",
      "url": "https://osv.dev/vulnerability/MAL-2026-13932"
    },
    {
      "type": "WEB",
      "url": "https://pkgwarden.com/incidents/baileys-whatsapp-auto-follow-npm-september-2026/"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-4c9v-m7qm-2mpr"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in @modss/baileys (npm)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…