Malicious Code Detected in bot-fb Package - Security Alert
Summary
MAL-2025-16003: Malicious code in bot-fb (npm). Affected versions are not published. No fix is published. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The bot-fb package is an npm library designed for automating interactions with Facebook Messenger. It provides developers with tools to create bots that can send and receive messages, manage conversations, and integrate with Facebook's messaging platform. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications utilizing it.
Vulnerability Detail
The vulnerability in the bot-fb package stems from the inclusion of malicious code that can compromise the security of applications using this library. This code may allow unauthorized access to sensitive data, facilitate data exfiltration, or enable other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for users to take immediate action to mitigate potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall bot-fb
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, developers can implement additional security measures such as input validation and sanitization in their applications to mitigate the risks posed by the malicious code. However, the best course of action is to remove the bot-fb package entirely.
Conclusion
The discovery of malicious code in the bot-fb package poses a serious threat to applications that utilize this library. Immediate action is required to remove the package and safeguard sensitive data. Developers are encouraged to explore secure alternatives and utilize tools like Vulert for ongoing vulnerability monitoring.
See every vulnerability recorded for bot-fb →
FAQ
The bot-fb package is an npm library used for creating bots that interact with Facebook Messenger.
The malicious code can compromise application security, potentially leading to unauthorized access and data breaches.
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.
Currently, there is no patched version available. It is recommended to remove the bot-fb package from your project.
You should remove the bot-fb package from your project and consider using a secure alternative for your bot development.