# GHSA-FJXF-MV8F-CP6X: Malicious code in @rixxcodex/baileys (npm)

- Database: GitHub
- Malicious package: yes
- Published: 2026-09-24
- Modified: 2026-11-10

## Affected versions

- @rixxcodex/baileys (npm): 8.1.0
- @rixxcodex/baileys (npm): 8.2.0
- @rixxcodex/baileys (npm): 8.0.16
- @rixxcodex/baileys (npm): 8.0.15
- @rixxcodex/baileys (npm): 9.0.3
- @rixxcodex/baileys (npm): 9.0.0
- @rixxcodex/baileys (npm): 9.0.1

## Description

## Source: amazon-inspector (58b5247e2f10d09b51e8d59c4b36cb2cbe62909af4be588fdb07dabf0afabcf2)
This package is a fork of the Baileys WhatsApp library that adds three undocumented channels which use the installer's authenticated WhatsApp session to perform account actions chosen by the author at runtime. In lib/Socket/socket.js around line 334, a base64-encoded URL decodes to https://raw.githubusercontent.com/skyzopedia/Screaper/refs/heads/main/idChannel.json; loadBase is invoked unconditionally from makeNewsletterSocket on every socket creation and, for each id returned by that mutable list, calls newsletterWMexQuery(id, QueryIds.FOLLOW) on the connected account. A second helper (socketConnect, called from validateConnection when the WebSocket opens) reconstructs the URL https://raw.githubusercontent.com/skyzopedia/NewsletterID/refs/heads/main/VIP_Push.json from a numeric char-code array (String.fromCharCode(...)) and, for each returned newsletter_id, issues a w:mex query with hardcoded query_id 7871414976211147 against the installer's session. A third helper, generateMessageV, is exposed on the socket API and, after a 40 second delay, invokes its callback with a hardcoded @newsletter JID obfuscated as a base64 blob XORed with the constant 23, again paired with query_id 7871414976211147. None of these behaviors are described in the README, and both remote lists are runtime-mutable by the author. In addition, package.json declares the cryptographic dependency "@rixxcodex/libsignal": "github:RixxCode/libsignal" with no tag or commit SHA, so npm install resolves whatever HEAD of that repository currently contains and executes it inside the Signal session-encryption path with no integrity check.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/83ae288c0e1b4c3af86970a251204044347e7e31/osv/malicious/npm/@rixxcodex/baileys/MAL-2026-16483.json))

## References

- https://github.com/ossf/malicious-packages/blob/83ae288c0e1b4c3af86970a251204044347e7e31/osv/malicious/npm/@rixxcodex/baileys/MAL-2026-16483.json
- https://www.npmjs.com/package/@rixxcodex/baileys/v/8.0.15
- https://www.npmjs.com/package/@rixxcodex/baileys/v/8.0.16
- https://www.npmjs.com/package/@rixxcodex/baileys/v/8.1.0
- https://www.npmjs.com/package/@rixxcodex/baileys/v/8.2.0
- https://github.com/ossf/malicious-packages/blob/95a9eef687e27c9d7c460b182bc6506a4df11a37/osv/malicious/npm/@rixxcodex/baileys/MAL-2026-16483.json
- https://www.npmjs.com/package/@rixxcodex/baileys/v/9.0.0
- https://www.npmjs.com/package/@rixxcodex/baileys/v/9.0.1
- https://www.npmjs.com/package/@rixxcodex/baileys/v/9.0.3
- https://github.com/advisories/GHSA-fjxf-mv8f-cp6x

Page: https://cve.now/GHSA-FJXF-MV8F-CP6X

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