Malicious Code Detected in cam-capture Package: A Critical Security Alert
Summary
MAL-2025-16470: Malicious code in cam-capture (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 cam-capture package is a Node.js library that allows users to capture images from a webcam. It is widely used in applications that require video input and image processing. However, the package has been found to contain malicious code, posing a significant security risk to users and their applications.
Vulnerability Detail
The vulnerability in the cam-capture package originates 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 harmful actions within the affected systems. The malicious nature of the code makes it imperative for users to take immediate action to mitigate potential risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall cam-capture
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, users can remove the cam-capture package from their project until a secure version is released. This can be done using the command: 'npm uninstall cam-capture'. Consider using alternative packages that provide similar functionality without the security risks.
Conclusion
The discovery of malicious code in the cam-capture package highlights the importance of maintaining secure coding practices and regularly updating dependencies. Users are urged to take immediate action to protect their applications from potential threats.
See every vulnerability recorded for cam-capture →
FAQ
The cam-capture package is a Node.js library designed for capturing images from webcams, commonly used in applications requiring video input.
The malicious code can potentially allow unauthorized access and lead to data breaches or other harmful actions within applications.
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 you cannot update the package right away, consider uninstalling it and using alternative libraries until a secure version is available.
Regularly check for updates on the packages you use and consider using tools like Vulert to monitor vulnerabilities in your dependencies.