Critical Malicious Code Vulnerability in datarepo (npm)
Summary
MAL-2025-18006: Malicious code in datarepo (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 datarepo package is an npm library designed for data management and repository functionalities. It allows developers to efficiently handle data storage and retrieval in their applications. However, this package has been found to contain malicious code, posing significant risks to users and their applications.
Vulnerability Detail
The vulnerability in the datarepo package originates from the inclusion of malicious code that can compromise the security of applications using this library. This code can lead to unauthorized access, data breaches, or other malicious activities, potentially affecting the integrity and confidentiality of user data. The vulnerability was introduced in version 0 and affects all subsequent versions.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall datarepo
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 remove the datarepo package from your project until a secure version is available. You can do this by executing: npm uninstall datarepo. Alternatively, consider using an alternative package that offers similar functionalities without the associated risks.
Conclusion
The datarepo package has been identified as containing malicious code, posing serious security risks to applications that utilize it. Users are advised to update to a patched version as soon as it becomes available, or consider alternative solutions in the meantime. Utilizing tools like Vulert can help in monitoring and managing such vulnerabilities effectively.
See every vulnerability recorded for datarepo →
FAQ
The malicious code can lead to unauthorized access and potential data breaches, compromising the security of applications that utilize the datarepo package.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. By using the Vulert playground, you can check if your application is affected without any signup.
If immediate updates are not possible, consider removing the package or using an alternative library until a secure version is released.
Currently, there is no safe version of datarepo available due to the presence of malicious code. It is recommended to monitor the package repository for updates.
Vulert uses the package-lock.json file to monitor and alert users in real-time for open-source vulnerabilities, ensuring that developers are informed about potential risks.