npm

The @zervonex/baileys npm Malware

Updated 23 Nov 2026 · Incident date 14 Oct 2026

Every published release of the npm package @zervonex/baileys, a fork of the Baileys WhatsApp library, carries malicious code.

GitHub published malware advisory GHSA-j2m6-4cjj-vv5m on 23 November 2026. npm replaced the package with a security holding package the same day.

What happened

GitHub marks the npm package @zervonex/baileys, a fork of the Baileys WhatsApp library, as malicious code.

  • The npm account zervonex published the package. Its versions run from 3.0.1, published on 14 October 2026, to 4.0.9-patch.1.
  • OpenSSF record MAL-2026-20362 mirrors the advisory and tags it CWE-506, embedded malicious code.
  • On 23 November 2026 npm set a security holding version, 0.0.1-security, as the latest tag. The holding package comes from npm itself.
  • The npm tarballs are gone, so the malicious code was unavailable for inspection. This page states only what the advisory and registry records report.

Affected versions

  • The advisory range starts at 0. Every published version is affected, from 0.0.0-stage through 4.0.9-patch.1.
  • Version 3.0.1 appeared on 14 October 2026 and is the first release in the registry listing.
  • GitHub lists no patched version.
  • 0.0.1-security is the holding package npm published on 23 November 2026. It is not a fix.

Indicators of compromise

  • Package @zervonex/baileys in package.json, a lockfile or node_modules.
  • Published under the npm account zervonex.

How to check

Run this command in each project folder to list an installed copy.

npm ls @zervonex/baileys

Search your lockfiles for the package. This command only reads files.

grep -n "@zervonex/" package-lock.json yarn.lock pnpm-lock.yaml 2>/dev/null

Check past CI build logs and lockfile history for any install since 14 October 2026. A clean install today cannot rule out earlier exposure.

What to do now

  1. Remove @zervonex/baileys from the project and from its lockfile.
  2. Treat any computer that installed or ran the package as fully compromised, as the GitHub advisory states.
  3. Rotate every secret and key on that computer. Do it from a different computer.
  4. The advisory warns that removing the package cannot guarantee removal of all malicious software it installed. Rebuild the machine from a clean image.

What Vigilance would show

These examples show an install hold and the corresponding owner report.

Example install message

Vigilance blocked `@zervonex/baileys` 4.0.9. This version is too new or changed in a way Vigilance must check first.

Example owner report

Bad update

@zervonex/baileys 4.0.9

The npm package @zervonex/baileys is listed as malware. GitHub says treat any computer that ran it as fully compromised.

See what to do now.

No security team? See who reads the alert.

Frequently asked questions

Is @zervonex/baileys the official Baileys library?

No. It is a separate npm package that forks the Baileys WhatsApp library code. The advisory covers @zervonex/baileys only.

What did the malicious code do?

The code is not available for inspection because npm removed the tarballs and published a security holding package. GitHub advisory GHSA-j2m6-4cjj-vv5m says to treat any computer that ran the package as fully compromised.

Can I still install the affected versions?

No. npm replaced the latest tag with the security holding version 0.0.1-security on 23 November 2026. Copies already in lockfiles or caches can still resolve, so check your projects.

Sources

  1. github.com/advisories/GHSA-j2m6-4cjj-vv5m
  2. osv.dev/vulnerability/MAL-2026-20362
  3. registry.npmjs.org/@zervonex/baileys

Send this page to the person who looks after AI at your company.

Email it

More supply chain attacks

All 179 attacks in the library · npm supply chain attacks · How to prevent supply chain attacks

Check the next update before you install it

Vigilance compares the version you trust with the new one. It names the one file that gained a power the old version did not have.

Start the free 14-day trialBrowse the attack library