# GHSA-H4CH-Q5X4-X2J7: Malicious code in @xz-bails/baileys (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-11-23
- Modified: 2026-11-23

## Affected versions

- @xz-bails/baileys (npm): 6.0.10
- @xz-bails/baileys (npm): 6.0.11

## Description

## Source: amazon-inspector (ff217bd2a1260e646df994e1d5a14ad54c79b81083e90755647c7ee2ee3c6ad3)
package.json declares `libsignal` as `github:tenka-san/libsignal-node` with no commit SHA, tag, or integrity check. On `npm install`, this resolves to whatever the mutable HEAD of that personal GitHub account's branch currently returns, and any lifecycle scripts inside the fetched tarball execute on the installer's machine. The reference points to an individual personal account rather than the upstream signalapp organization or the WhiskeySockets parent of this Baileys fork, so whoever controls that GitHub repository controls code that runs on every installer of this package. This is an off-registry dependency source for a transitive that provides cryptographic/signal-protocol functionality.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/acb9e2314983a372a290dbefd7e7c4aae71401bb/osv/malicious/npm/@xz-bails/baileys/MAL-2026-20340.json))

## References

- https://github.com/ossf/malicious-packages/blob/acb9e2314983a372a290dbefd7e7c4aae71401bb/osv/malicious/npm/@xz-bails/baileys/MAL-2026-20340.json
- https://www.npmjs.com/package/@xz-bails/baileys/v/6.0.10
- https://www.npmjs.com/package/@xz-bails/baileys/v/6.0.11
- https://github.com/advisories/GHSA-h4ch-q5x4-x2j7

Page: https://cve.now/GHSA-H4CH-Q5X4-X2J7

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
