Skip to main content
MalwarePublished Updated

baileys-mbuilder (npm) · Malicious Code

Affects baileys-mbuilderSource GCVE Database

0

Malicious package : remove baileys-mbuilder and rotate any secrets on hosts that installed it.

Data as of 10 Sep 2026, 11:25 UTC

Classification

Malicious package

Published to npm · OSV MAL-2026-14529

What to do

Remove baileys-mbuilder from every project, lockfile and image that pulls it in. Treat any host that installed it as compromised: rotate the credentials, tokens and keys it could read, from a clean machine.

Affected software

ProductAffectedFixed in
npmbaileys-mbuilderAffected–Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

The baileys-mbuilder npm package contains heavily obfuscated malicious code executed both during installation and runtime. The package's postinstall script runs a large JSFuck-encoded payload that downloads and dynamically updates remote JavaScript code without transparent integrity verification. This behavior effectively gives an attacker full control over any system where the package is installed. Removal of the package does not guarantee elimination of all malicious components, and all secrets on affected systems should be considered compromised and rotated immediately.

References

Community reviews

Loading reviews…