Malicious Code Detected in fb-logger: A Critical Security Alert
Summary
MAL-2025-20268: Malicious code in fb-logger (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
fb-logger is an npm package designed for logging messages in JavaScript applications. It provides developers with a simple interface to log various levels of messages, aiding in debugging and monitoring application behavior. However, recent findings have revealed that this package contains malicious code, posing significant security risks to applications that utilize it.
Vulnerability Detail
The vulnerability in fb-logger stems from the inclusion of malicious code that can compromise the integrity of applications using this package. This code may allow unauthorized access to sensitive data, lead to data breaches, or facilitate other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it imperative for developers to take immediate action.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall fb-logger
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, consider removing the fb-logger package from your project until a secure version is released. You can do this by executing the command: 'npm uninstall fb-logger'. Alternatively, you may explore other logging packages that do not have known vulnerabilities.
Conclusion
The discovery of malicious code in the fb-logger package poses a serious threat to applications that utilize it. Developers must take immediate action to update or remove the package to safeguard their applications. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for fb-logger →
FAQ
fb-logger is an npm package used for logging messages in JavaScript applications, helping developers track application behavior.
The malicious code can potentially allow unauthorized access to sensitive data and may lead to data breaches or other harmful activities.
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 requiring any signup.
If immediate updates are not possible, consider removing the package or using alternative logging solutions until a secure version is available.
Utilize tools like Vulert to monitor your package-lock.json for vulnerabilities, ensuring you receive alerts for any security issues in your dependencies.