kevinx-baileys
KevinX Baileys — a WebSockets library for interacting with WhatsApp Web (multi-device, pairing code, interactive messages, newsletter, auto-reconnect, send queue, typings).
This report shows the evidence for kevinx-baileys@1.2.2. 3 of 3 known versions are blocked or flagged. See all versions.
OpenSSF/OSV Malicious Advisory
imported 17m ago · by OpenSSF/OSVOpenSSF/OSV advisory MAL-2026-18688 confirms this npm version as malicious.
Independent LPM AI assessment
CleanIndependent AI assessment: clean. LPM AI assessed this version as clean; the assessments disagree.
The install hook only enforces the package's Node.js requirement, and import-time update checks are opt-in. Credential-bearing GraphQL requests use WhatsApp endpoints, while channel follows require an explicitly supplied target list.
Independent scan evidence
public snapshot- The preinstall script only runs a Node.js version check and exits if the version is below 20.
- Importing the main entry shows a banner; update checks run only when explicitly enabled by an environment flag.
- Automatic channel follows require a caller-supplied list, which defaults to empty.
- GraphQL requests use WhatsApp endpoints; Wamo credentials are passed through the Wamo request path.
- The hard-coded newsletter identifier appears in event message metadata that is relayed by a message-building method.
- The package does define a preinstall lifecycle script, but it only checks the Node.js version.
- The library supports account actions and credential-bearing requests when its WhatsApp socket methods are invoked. The reviewed code does not show unrelated automatic collection or default account actions.
Source & flagged code
8 flaggedPackage 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 · L600Package source references weak cryptographic algorithms.
lib/Utils/validate-connection.jsView on unpkg · L107Package ships non-JavaScript build or shell helper files.
WAProto/GenerateStatics.shView on unpkgPackage contains source files above the normal full-analysis size ceiling.
WAProto/index.jsView on unpkgA bounded semantic-analysis stage reached its safety limit; remaining detectors completed, but this package requires AI review.
lib/Utils/business.jsView on unpkgSource file is highly similar to a previously finalized malicious package; route for source-aware review.
lib/Utils/messages-media.jsView on unpkgFindings
Affected versions and remediation
This report applies to kevinx-baileys@1.2.2.
The versions list below shows the verdict for each recorded version.
- Avoid installing kevinx-baileys@1.2.2. 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.