Malicious Code Detected in npmrcetest Package - Vulnerability MAL-2025-5761
Summary
MAL-2025-5761: Malicious code in npmrcetest (npm). Affects npmrcetest versions >= 1.0.0. 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 npmrcetest package is an npm library designed for specific functionalities within JavaScript applications. However, it has been identified as malicious due to its communication with domains linked to harmful activities. This vulnerability poses a significant risk to users who may unknowingly integrate this package into their projects.
Vulnerability Detail
The npmrcetest package version 1.0.0 has been flagged for malicious behavior. It communicates with a domain associated with malicious activities and executes commands that could compromise the security of the host system. This vulnerability originates from the package's design, which allows it to perform unauthorized actions, potentially leading to data breaches or system exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall npmrcetest
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 measure, avoid using the npmrcetest package altogether until a secure version is released. Consider using alternative packages that provide similar functionalities without the associated risks.
Conclusion
The npmrcetest package has been identified as malicious, posing significant security risks to applications that utilize it. Users are advised to uninstall the affected version and monitor for updates or alternatives. Utilizing tools like Vulert can help in identifying and managing vulnerabilities in open-source packages.
See every vulnerability recorded for npmrcetest →
FAQ
npmrcetest is an npm package designed for specific functionalities in JavaScript applications, but it has been identified as malicious.
The vulnerability allows the package to communicate with malicious domains and execute harmful commands, potentially compromising your application's security.
You should uninstall the npmrcetest package immediately and check for any updates or alternatives that do not pose security risks.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.