@chatunity/baileys
Affected
- introduced
0(semver)
Fixed versions
None listed
Fix
No fixed version is listed.
Advisory
Also known as: GHSA-2vxg-pmhf-2c8r
Malicious package Its source marks this package as malicious: it is not a vulnerability in a legitimate one.
Malicious code in @chatunity/baileys (npm)
---
_-= Per source details. Do not edit below this line.=-_
Source: amazon-inspector (acc8739717b3768c51a56da3a23b85b253b0bc08a2ab4a447e278d055c8a2e70)
This package presents itself as a fork of the Baileys WhatsApp library. On every successful login through makeWASocket, lib/Socket/socket.js invokes autoSubscribeToDefaultNewsletterIfRequired(), which calls followNewsletterWMex with the hardcoded JID '120363418582531215@newsletter' — an author-controlled WhatsApp newsletter. The behavior is undocumented in the README, persists across sessions via a flag (basedbysam) stored in the credentials file, and uses the consumer's authenticated WhatsApp session to perform an account action (following a channel) without consent. Any bot or application built on top of this library will silently enroll its WhatsApp account as a follower of the author's channel. Additionally, package.json pins the critical libsignal cryptographic dependency to an unpinned GitHub branch (github:realvare/libsignal), meaning the owner of that repo can ship arbitrary crypto code to installers at any time without a version bump.
Source: ghsa-malware (91f51e9df3ce8c75b411231fdaa15fe49a42b616a168e6c84363229c5519b40f)
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