Skip to main content

Malicious code in @mikudeveloper/baileys (npm)

0
High
Published: 09/22/2026 (09/22/2026, 16:05:11 UTC)
Source: GCVE Database
Product: @mikudeveloper/baileys

Description

The @mikudeveloper/baileys npm package version 1.0.0 contains malicious code that executes unauthorized actions during installation and runtime. It depends on an unverified git repository for a critical library, allowing the repository owner to execute arbitrary code on any system installing the package. Additionally, it silently subscribes the user's WhatsApp session to channels controlled by the attacker by fetching a mutable remote list, without user disclosure.

Affected software

npmghsa
@mikudeveloper/baileys
Affected versions
=1.0.0

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: 10/12/2026, 22:08:48 UTC

Technical Analysis

The @mikudeveloper/baileys package (version 1.0.0) is a fork of Baileys that declares a dependency on libsignal via a git URL without commit SHA, tag, or integrity verification. This allows the repository owner to execute arbitrary lifecycle scripts at install time. Furthermore, the package's makeNewsletterSocket function schedules a delayed task that fetches a mutable JSON list from a hardcoded URL controlled by the attacker. It then uses the installer's authenticated WhatsApp session to silently subscribe to attacker-selected channels, with no disclosure in the package documentation. This behavior effectively compromises any system running this package, granting the attacker persistent control and the ability to manipulate the victim's WhatsApp subscriptions.

Potential Impact

Any system with this package installed or running is considered fully compromised. The attacker can execute arbitrary code during installation and silently control the victim's WhatsApp session by subscribing to channels without consent. All secrets and keys stored on the compromised system should be considered exposed and must be rotated from a clean environment. Removing the package alone may not eliminate all malicious components due to the potential for persistent backdoors.

Mitigation Recommendations

Immediate removal of the @mikudeveloper/baileys package version 1.0.0 is required. All secrets, keys, and credentials stored on the affected system should be rotated from a different, trusted machine. Since the package executes arbitrary code at install time and may have installed persistent malware, a full system compromise should be assumed and a thorough forensic investigation and remediation performed. No official patch or fix is available; avoid using this package and its forks.

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-16386
Osv Schema Version
1.7.4
Aliases
["GHSA-2xx9-x9v7-25x2"]
Ecosystems
["npm"]

Threat ID: 6acd556f2cdf04f656da89bc

Added to database: 10/12/2026, 21:47:27 UTC

Last enriched: 10/12/2026, 22:08:48 UTC

Last updated: 10/12/2026, 22:08:48 UTC

Views: 8

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