Malicious Code Detected in facerecog Package - Immediate Action Required
Summary
MAL-2025-20145: Malicious code in facerecog (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 facerecog package is an npm library designed for facial recognition tasks, offering functionalities such as image processing and analysis to identify faces in images. While it provides valuable tools for developers working on AI and image processing applications, the package has been found to contain malicious code, posing significant security risks to users and their applications.
Vulnerability Detail
The vulnerability in the facerecog package arises from the inclusion of malicious code that can compromise user data and system integrity. This code was introduced in version 0 and can lead to unauthorized access, data breaches, and potential exploitation of the affected systems. Users of this package are at risk of severe ramifications, including loss of sensitive information and damage to their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall facerecog
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 facerecog package and look for alternative libraries that provide similar functionality without the associated risks. Additionally, you can monitor your application for any suspicious activity while you seek a resolution.
Conclusion
The discovery of malicious code in the facerecog package poses a significant threat to users and their applications. Immediate action is required to mitigate risks by updating or removing the package. Utilizing tools like Vulert can help monitor for vulnerabilities and ensure the security of your software.
See every vulnerability recorded for facerecog →
FAQ
The malicious code can compromise user data and system integrity, 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 any signup.
If you cannot update the package, consider removing it from your project and looking for alternative libraries that offer similar functionalities.
Currently, there is no patched version available. Users are advised to remove the package until a secure version is released.
Using the compromised package can lead to data breaches, unauthorized access to sensitive information, and potential exploitation of your application.