@alannxd/baileys@6.2.8
A WebSockets library for interacting with WhatsApp Web — fork of Baileys with extra socket layers and special message helpers.
This package appears in our research on the malicious Baileys forks, with how it works, the full package list and what to do if you installed it.
OpenSSF/OSV Malicious Advisory
imported 2d ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-18120 confirms this npm version as malicious.
Independent LPM AI assessment
SuspiciousIndependent AI assessment: suspicious. LPM AI assessed this version as suspicious; the assessments disagree.
This is a concrete command-injection vulnerability in a public helper, but the inspected code does not show automatic exploitation or malicious intent.
Independent scan evidence
public snapshot- The public utilities barrel re-exports the media helper module.
- The video thumbnail helper builds a shell command by interpolating its file path and invokes it through child_process.exec.
- The standard send-media path derives its thumbnail input as an internal original-file path, so exploitation depends on callers passing untrusted paths to the public helper.
- No automatic lifecycle path invokes the thumbnail helper with attacker-controlled input.
- The inspected ordinary media path uses a package-created temporary file.
Source & flagged code
9 flagged · loading sourcePackage defines install-time lifecycle scripts.
package.jsonView on unpkgPackage contains a high-severity secret pattern.
lib/WABinary/constants.jsView on unpkg · L600Google API key in lib/WABinary/constants.js
lib/WABinary/constants.jsView on unpkg · L600Findings
Affected versions and remediation
This report applies to @alannxd/baileys@6.2.8.
See all versions of @alannxd/baileys for other recorded verdicts.
- Avoid installing @alannxd/baileys@6.2.8. Remove it from direct dependencies and check your lockfile for transitive copies.
- Choose an independently verified alternative or release. This report does not establish that other versions are safe.
- If this version ran, investigate the affected machine and build environment. Rotate credentials it could access and rebuild from a trusted environment.
Evidence last updated: .
Source advisory published: .
Think this verdict is wrong? Dispute it on GitHub or read how reports are produced.