baileys-mbuilder @4.7.0-lts
Vulnerability report · Last retrieved from osv.dev August 27, 2026 at 4:25 AM UTC
OSV ID
MAL-2026-14529
Ecosystem
npm
Summary
package.json declares "postinstall": "node lib/index.js --install" , and lib/index.js is a single ~6.3 MB JSFuck-style eval() expression that reconstructs its source character-by-character from boolean/array coercions and %-unescape. The same file is the package's main , and lib/index.mjs re-requires it, so both npm install and any subsequent require / import of the package execute the obfuscated payload. The README documents that the postinstall step downloads MessageBuilder.js from a remote repository and that MB.enableAutoUpdate(ms, cb) periodically re-fetches remote JavaScript, hash-compares it, and on mismatch dynamic- import() s the new module, rebinding the default export via a Proxy so consumers transparently run the newly fetched code. The fetch destination, pinning, and any integrity checks are hidden inside the JSFuck blob and are not visible to static review. The obfuscation scale (6 MB of JSFuck for a message-builder library) has no legitimate purpose and defeats scanner and reviewer inspection of what actually executes on installer machines.
Source: amazon-inspector (508ded2b926100712d9abf255683432d44a917c067f9d69b14b4c678918ce8bb)
Protect your entire dependency tree
Scan your lock files automatically on every PR. Block malicious packages before they reach production.