Malicious Code Detected in fbcode Package - Security Alert
Summary
MAL-2025-20271: Malicious code in fbcode (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 fbcode package is a JavaScript library available in the npm ecosystem, primarily used for various functionalities in web development. It is designed to facilitate developers in building applications efficiently. However, this package has recently been flagged for containing malicious code, posing a significant risk to users and their applications.
Vulnerability Detail
The fbcode package has been identified to contain malicious code that could compromise the security of applications utilizing it. This vulnerability originates from the package itself, which was found to have been tampered with, allowing malicious actors to execute harmful actions within the user's environment. The ramifications of this vulnerability include potential data breaches, unauthorized access to sensitive information, and the possibility of further exploitation within the application ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall fbcode
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 fbcode package from your project until a secure version is released. You can do this by executing the command: 'npm uninstall fbcode'. This will help mitigate the risk of exploitation while you await a fix.
Conclusion
The fbcode package has been flagged for containing malicious code, posing a serious threat to applications that utilize it. Immediate action is required to either update or remove the package to safeguard your projects. Utilizing tools like Vulert can enhance your monitoring capabilities for open-source vulnerabilities.
See every vulnerability recorded for fbcode →
FAQ
fbcode is a JavaScript library available on npm, used for various web development tasks.
The malicious code was identified through security audits and reports from security researchers.
If you are using fbcode, immediately update to the latest version or uninstall the package until a secure version is released.
Yes, Vulert can monitor your project for vulnerabilities using your package-lock.json file, providing real-time alerts.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.