Malicious Code Detected in instagrambotlib: A Critical Security Concern

instagrambotlib Updated 02 Oct 2025

Summary

14/08/2025
CRITICAL
No i
Critical
Not published

MAL-2025-6935: Malicious code in instagrambotlib (npm). Affects instagrambotlib versions >= 3.3.3. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The instagrambotlib package is an npm library designed for automating interactions with Instagram. It allows developers to create bots that can perform actions such as posting, liking, and following users on the platform. However, this package has been identified as having a security vulnerability that involves communication with a domain linked to malicious activities, potentially compromising user data and application integrity.

Vulnerability Detail

The vulnerability in instagrambotlib originates from version 3.3.3 and later, where the package communicates with a domain associated with malicious activity. This could lead to unauthorized access to sensitive information, data breaches, or exploitation of the application by malicious actors. The risk is particularly significant for applications that rely on this package for automation, as it may expose user credentials and other sensitive data.

How To Fix

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

npm uninstall instagrambotlib

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 instagrambotlib package from your project until a secure version is available. You can do this by executing the following command: npm uninstall instagrambotlib. Alternatively, consider using a different package that provides similar functionality without the associated risks.

Conclusion

The instagrambotlib package has a critical vulnerability that allows communication with a malicious domain, posing significant risks to applications using it. It is essential to update the package to the latest version or consider alternative solutions to mitigate these risks. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for instagrambotlib →

Share this vulnerability

FAQ

instagrambotlib is an npm package used for automating interactions with Instagram, allowing developers to create bots for various actions on the platform.

The vulnerability involves the package communicating with a domain linked to malicious activities, posing risks such as data breaches and unauthorized access.

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

Yes, updating to the latest version of instagrambotlib will address the vulnerability. Use the command 'npm update instagrambotlib' to apply the fix.

If immediate updates are not possible, consider uninstalling the package or using an alternative package until a secure version is available.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

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

npm uninstall instagrambotlib

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