Malicious code in @fazzcodestudio/wa-web (npm)
Description
The npm package @fazzcodestudio/wa-web, a fork of the Baileys WhatsApp Web library, contains malicious code that automatically uses the installer's authenticated WhatsApp session to subscribe the account to WhatsApp Channels chosen by the publisher without user consent. This behavior is enabled by default and undocumented, requiring manual configuration to disable. The package does not exfiltrate credentials or maintain persistence, but it covertly inflates channel subscribers using the victim's account. Versions 0.3.0 and 0.3.1 are affected.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @fazzcodestudio/wa-web npm package, a fork of the Baileys WhatsApp Web library, includes code that automatically subscribes the user's authenticated WhatsApp account to specific WhatsApp Channels controlled by the publisher. This is done by sending a raw WhatsApp 'w:mex' FOLLOW query with a hardcoded channel JID shortly after the connection is established. The feature is enabled by default via the 'autoFollowNewsletterOnConnect' setting, which is undocumented and must be manually disabled to prevent this behavior. Static analysis found no evidence of credential exfiltration or install-time payloads, and the malicious action occurs only when the WhatsApp socket is created. The affected versions are 0.3.0 and 0.3.1.
Potential Impact
The malicious code causes the victim's WhatsApp account to be covertly subscribed to channels chosen by the attacker, inflating subscriber counts without user knowledge or consent. While no credentials or session keys are sent off-host, this unauthorized use of the account violates user trust and could lead to reputational damage or unwanted content delivery. The package's presence indicates a compromised environment, and all secrets and keys on the affected system should be considered at risk.
Mitigation Recommendations
No official patch or fix is available. Users should immediately remove the @fazzcodestudio/wa-web package from their systems. Because the package grants the publisher covert control over the WhatsApp session, it is recommended to rotate all secrets and keys stored on the affected computer from a different, trusted device. Users should also audit their environment for additional compromise. To prevent this issue, avoid using untrusted forks of libraries and verify package integrity before installation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-17441
- Osv Schema Version
- 1.7.4
- Aliases
- ["GHSA-69w8-wg2c-rm67"]
- Ecosystems
- ["npm"]
Threat ID: 6acd555f2cdf04f656da86ab
Added to database: 10/12/2026, 21:47:11 UTC
Last enriched: 10/12/2026, 22:03:03 UTC
Last updated: 10/13/2026, 01:48:08 UTC
Views: 1
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.