Malicious Code Vulnerability in api-chatfb Package
Summary
MAL-2025-14639: Malicious code in api-chatfb (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 api-chatfb package is an npm library designed for interacting with Facebook's chat API. It provides developers with tools to integrate chat functionalities into their applications. However, this package has been identified to contain malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the api-chatfb package stems from the inclusion of malicious code that can compromise the security of applications utilizing this library. This issue was introduced in version 0 and affects all subsequent versions. The malicious code can lead to unauthorized access, data breaches, or other harmful actions within the affected applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall api-chatfb
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 avoid using the api-chatfb package until a secure alternative is found. Regularly monitor your dependencies for updates and vulnerabilities.
Conclusion
The api-chatfb package has been identified to contain malicious code, posing significant risks to applications that utilize it. Users are advised to uninstall the package and seek alternative solutions to ensure the security of their applications.
See every vulnerability recorded for api-chatfb →
FAQ
The api-chatfb package is an npm library that allows developers to integrate Facebook chat functionalities into their applications.
The malicious code can lead to unauthorized access and potential data breaches, compromising the security of applications that use this package.
You can use Vulert, which monitors open-source vulnerabilities in your software. By analyzing your package-lock.json file, Vulert can alert you in real-time about vulnerabilities. You can also check your application using the Vulert playground without any signup.
No, there is currently no patch available for the api-chatfb package. The best course of action is to uninstall the package and look for alternatives.
If you have used the api-chatfb package, it is crucial to uninstall it immediately and review your application for any potential security issues that may have arisen from its use.