npm

The @xz-bails/baileys npm Supply Chain Attack

Updated 23 Nov 2026 · Incident date 17 Nov 2026

Two releases of the npm package @xz-bails/baileys pull their libsignal dependency from an unpinned GitHub account, and GitHub lists both releases as malware.

The npm account xzv-rxvz published both releases under the name Rz. GitHub reviewed the report and published malware advisory GHSA-h4ch-q5x4-x2j7 on 23 November 2026.

What happened

@xz-bails/baileys is a fork of the Baileys WhatsApp Web library. OpenSSF record MAL-2026-20340 carries an Amazon Inspector analysis of it.

  • Version 6.0.10 went to npm at 06:16 UTC on 17 November 2026. Version 6.0.11 followed at 21:39 UTC on 19 November 2026.
  • The package.json file in both versions declares libsignal as github:tenka-san/libsignal-node. The pin carries no commit SHA, tag or integrity check.
  • An install therefore fetches whatever the HEAD of that personal GitHub repository serves, and lifecycle scripts in the fetched tarball run on the installer machine.
  • In code inspection I read package.json and engine-requirements.js of version 6.0.10, and package.json, lib/index.js and lib/Socket/index.js of version 6.0.11. engine-requirements.js only checks the Node version. Those files contain no malicious code. The flagged risk sits in the unpinned dependency, not in the files I read.

Affected versions

  • 6.0.10 and 6.0.11. GitHub lists both in the vulnerable range = 6.0.10 and = 6.0.11.
  • GitHub lists no patched version. Both versions stay live on npm, and 6.0.11 is the latest release as of 23 November 2026.

Indicators of compromise

  • Dependency source github:tenka-san/libsignal-node in package.json
  • npm publisher account xzv-rxvz
  • Version 6.0.10 tarball integrity sha512-155hUIOJgc9ZoGn7J42M0XknvrP0/metQVzxjhT9ulVdlRCapfEDPdNzQfZV26VmoI5o7JlKG4YemRF5dEI8Pg==

How to check

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

npm ls @xz-bails/baileys

Search your lockfiles for the dependency source. This command only reads files.

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

Check your CI build logs and lockfile history for either affected version. A clean install today cannot rule out earlier exposure.

What to do now

  1. Remove @xz-bails/baileys from the project and from its lockfile.
  2. Remove the github:tenka-san/libsignal-node dependency. Use an on-registry libsignal build with a fixed version instead.
  3. If you find an affected version in a build history, rotate the secrets that build had access to.

What Vigilance would show

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

Example install message

Vigilance blocked `@xz-bails/baileys` 6.0.11. This version is too new or changed in a way Vigilance must check first.

Example owner report

Bad update

@xz-bails/baileys 6.0.11

An npm release pulled a crypto dependency from an unpinned GitHub account, so an install ran code the registry never checked.

See what to do now.

No security team? See who reads the alert.

Frequently asked questions

Is @xz-bails/baileys still on npm?

Yes. Versions 6.0.10 and 6.0.11 stayed live after GitHub published the advisory on 23 November 2026, and npm lists 6.0.11 as the latest release.

Does the package's own code steal credentials?

Not in the files inspected for this page. The GitHub advisory flags the unpinned libsignal dependency, which runs code from a mutable personal GitHub repository during install.

Sources

  1. github.com/advisories/GHSA-h4ch-q5x4-x2j7
  2. raw.githubusercontent.com/ossf/malicious-packages/acb9e2314983a372a290dbefd7e7c4aae71401bb/osv/malicious/npm/@xz-bails/baileys/MAL-2026-20340.json
  3. registry.npmjs.org/@xz-bails%2Fbaileys

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