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
zervonexpublished the package. Its versions run from3.0.1, published on 14 October 2026, to4.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 thelatesttag. 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, from0.0.0-stagethrough4.0.9-patch.1. - Version
3.0.1appeared on 14 October 2026 and is the first release in the registry listing. - GitHub lists no patched version.
0.0.1-securityis the holding package npm published on 23 November 2026. It is not a fix.
Indicators of compromise
- Package
@zervonex/baileysinpackage.json, a lockfile ornode_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
- Remove
@zervonex/baileysfrom the project and from its lockfile. - Treat any computer that installed or ran the package as fully compromised, as the GitHub advisory states.
- Rotate every secret and key on that computer. Do it from a different computer.
- 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.
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
Send this page to the person who looks after AI at your company.