npm package report

Is naileys safe?

Version 0.5.4 of naileys was compromised (WhatsApp channel hijack (PhantomSub): follows publisher-chosen channels through the user's session). Other versions are not flagged as malicious. npm's latest tag points to 0.5.4, one of these versions, so an unpinned install gets it.

Do not install naileys 0.5.4

CRITICALanalyst verified

WhatsApp channel hijack (PhantomSub): follows publisher-chosen channels through the user's session. Added to CyberXYZ 2026-10-26, verified by a CyberXYZ analyst.

// what we observed

lib/Socket/newsletter.js: follows publisher-chosen WhatsApp channels through the user's session on connect (PhantomSub; read by hand 2026-10-26)

// versions and what to do
Malicious
0.5.4
Move to
0.5.6 newest 0.x release, no known advisory

If one of these versions was installed, remove it and treat the credentials, tokens and SSH keys on that machine as exposed: rotate them. Check CI runners and container images that installed it too.

npm install naileys@0.5.6
// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      Tracked for PyPI packages. HuggingFace models declare Python dependencies, so npm packages are not covered.



      Checked 2026-10-30 at 19:43 UTC. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.