Skip to main content

Malicious code in @saazkira/baileys (npm)

0
Medium
Source: GCVE Database
Product: @saazkira/baileys

Description

The @saazkira/baileys npm package versions 2.1.6 through 2.1.9 contain malicious code that silently subscribes the victim's WhatsApp account to attacker-controlled channels without user consent. This is done by injecting a covert subscription action into the WhatsApp socket layer, leveraging the installer's authenticated session to issue a FOLLOW query to attacker-chosen WhatsApp Channel JIDs. The targeted JIDs are obfuscated or fetched remotely to evade detection. The malicious code does not exfiltrate credentials, establish persistence, or execute arbitrary remote code.

Affected software

npmghsa
@saazkira/baileys
Affected versions
=2.1.9=2.1.8=2.1.7=2.1.6

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

AILast updated: 09/30/2026, 16:04:05 UTC

Technical Analysis

This threat involves a family of over 100 near-identical malicious forks of the Baileys WhatsApp Web library, including the @saazkira/baileys npm package versions 2.1.6 to 2.1.9. The injected code patches the WhatsApp socket connect routine to issue an authenticated 'w:mex' FOLLOW query to attacker-controlled WhatsApp Channel JIDs shortly after connection. The victim's authenticated WhatsApp session is abused to silently subscribe their account to these channels. The target JIDs are hidden via obfuscation methods such as base64 encoding, XOR, or runtime reconstruction, or fetched dynamically from attacker-controlled remote sources. The malicious action is limited to subscription abuse and does not involve credential theft, persistence, or arbitrary code execution.

Potential Impact

Victims unknowingly subscribe their WhatsApp accounts to attacker-controlled channels or newsletters, potentially exposing them to unwanted content or spam. The attack leverages the victim's authenticated session but does not compromise credentials or allow further remote code execution or persistence. The impact is primarily unauthorized subscription and potential privacy or spam concerns.

Mitigation Recommendations

No official patch or remediation guidance is provided in the available data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should avoid installing or using the affected versions of the @saazkira/baileys package (2.1.6 to 2.1.9) and verify the integrity of their dependencies. Consider using trusted package sources and scanning for malicious code in dependencies.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
MAL-2026-17377
Osv Schema Version
1.7.4
Ecosystems
["npm"]

Threat ID: 6abd30852a4e24523d34014b

Added to database: 09/30/2026, 15:53:41 UTC

Last enriched: 09/30/2026, 16:04:05 UTC

Last updated: 09/30/2026, 22:39:38 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses