Malicious Code Injection in prastzyy Package: Unauthorized WhatsApp Channel Subscriptions

prastzyy Updated 02 Oct 2026

Summary

01/10/2026
CRITICAL
No i
Critical
Not published

MAL-2026-17449: Malicious code in prastzyy (npm). Affects prastzyy versions 1.0.0. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The prastzyy package is a fork of the Baileys WhatsApp Web library, designed to facilitate interactions with the WhatsApp Web API. It allows developers to build applications that can send and receive messages, manage contacts, and perform other WhatsApp-related tasks. However, this package has been identified as part of the 'PhantomSub' family, which has been compromised to include malicious functionalities that exploit users' authenticated WhatsApp sessions.

Vulnerability Detail

The vulnerability arises from the publisher's injection of code that covertly subscribes the user's WhatsApp account to various WhatsApp Channels without their consent. This is achieved by sending a FOLLOW query using the user's authenticated session. The injected code is located in the 'package/lib/Socket/newsletter.js' file, where it defines a list of channel identifiers and schedules follow requests for each channel upon establishing a connection. The lack of documentation and opt-out options exacerbates the issue, leading to unauthorized use of the victim's account to inflate the publisher's channel subscriber count.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall prastzyy

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can remove the prastzyy package from your project by running the following command: npm uninstall prastzyy. This will prevent any malicious code from executing until a fix is available.

Conclusion

The prastzyy package has been compromised to include malicious code that exploits users' WhatsApp sessions for unauthorized channel subscriptions. Users are advised to update or uninstall the package to mitigate the risk. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for prastzyy →

Share this vulnerability

FAQ

prastzyy is a fork of the Baileys WhatsApp Web library that allows developers to interact with the WhatsApp Web API.

The vulnerability allows the publisher to use your authenticated WhatsApp session to subscribe your account to channels without your consent.

No, the injected code does not provide any opt-out mechanism, making it impossible for users to prevent these subscriptions.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

If you cannot update the package, it is recommended to uninstall it to prevent any potential exploitation.

How To Fix

This package is malicious. Remove it and rotate any credentials it could have accessed.

npm uninstall prastzyy

If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback