@sakataa/baileys
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-8868-q7gh-f9jf
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in @sakataa/baileys (npm)
@sakataa/baileys is a fork of the Baileys WhatsApp Web library that silently subscribes the installer's own WhatsApp account to WhatsApp Channels chosen by the publisher. When the socket connects, code in lib/Socket/newsletter.js sends the WhatsApp w:mex FOLLOW query for the channel ID(s) 120363408893555851@newsletter, 120363424295522327@newsletter, 120363426470081124@newsletter, 120363427718144294@newsletter (stored base64-encoded), using the victim's authenticated session and without telling them. Same behaviour as the PhantomSub family (MAL-2026-17342).
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (ee2b01123ec87ad2e7c30c65a3a7189c8dbd72cd32f06e77d8a58f0536f3739f)
package.json declares libsignal as github:Cogils/libsignal-node with no commit SHA, tag, or integrity check. On npm install, npm resolves this to whatever the default branch of that GitHub repository currently points at and executes any lifecycle scripts contained within the fetched tree. The owner of that repository can change the installed code at any time without any version change in @sakataa/baileys, and no registry-side immutability or audit applies. This is an off-registry dependency source: the manifest line itself causes attacker-mutable code to be fetched and run in the installer's environment on a default install.
Source: ghsa-malware (4abcf18dd6035677a062b94d9f59970622c3ca9af7a1dd7c0994c8402f61fc41)
Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
Not rated by the source.
0 (semver)None listed
No fixed version is listed.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: OpenSSF Malicious Packages · Apache-2.0