Malicious Code Detected in fbjs-opensource Package - Security Alert
Summary
MAL-2025-20277: Malicious code in fbjs-opensource (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 fbjs-opensource package is a JavaScript library that provides utilities for building user interfaces. It is commonly used in various web applications to enhance performance and maintainability. However, recent findings have revealed that this package contains malicious code, posing a significant security risk to applications that rely on it.
Vulnerability Detail
The vulnerability in the fbjs-opensource package stems from the inclusion of malicious code that can compromise the security of applications utilizing this library. This code may lead to unauthorized access, data breaches, or other malicious activities. The issue was introduced in version 0 and affects all subsequent versions, making it critical for developers to address this vulnerability promptly.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall fbjs-opensource
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 fbjs-opensource package from your project until a secure version is released. You can do this by executing the following command: npm uninstall fbjs-opensource. This will help mitigate the risk while you await a proper fix.
Conclusion
The fbjs-opensource package has been found to contain malicious code, posing a serious security threat to applications that utilize it. Developers are urged to update or remove the package to protect their applications from potential exploits. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.
See every vulnerability recorded for fbjs-opensource →
FAQ
fbjs-opensource is a JavaScript library that provides utilities for building user interfaces, commonly used in web applications.
The malicious code found in fbjs-opensource can lead to unauthorized access and potential data breaches in applications that use this package.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
Yes, it is recommended to update to the latest version of fbjs-opensource that addresses this vulnerability.
If you cannot update the package right away, consider removing it from your project as a temporary measure to mitigate the risk.