Malicious Code Injection in trevora-cir57: A Threat to npm Ecosystem
Summary
MAL-2025-169253: Malicious code in trevora-cir57 (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
trevora-cir57 is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is designed to exploit the npm ecosystem by generating and publishing derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards. The malicious nature of this package poses a significant risk to developers and users relying on npm for package management.
Vulnerability Detail
The vulnerability in trevora-cir57 originates from its association with the tea.xyz token reward campaign, which floods the npm registry with malicious packages. These packages contain scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only pollutes the npm registry but also compromises the integrity of the packages being published, potentially leading to security risks for users who unknowingly install these malicious variants.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir57
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 trevora-cir57 package and monitor your dependencies for any malicious activity. Regularly check your package-lock.json file for any unauthorized changes and consider using tools like Vulert to monitor for vulnerabilities in real-time.
Conclusion
The trevora-cir57 package poses a significant threat to the npm ecosystem due to its malicious behavior of modifying package files and publishing unauthorized variants. It is crucial for developers to remain vigilant, regularly update their dependencies, and utilize monitoring tools like Vulert to safeguard their projects against such vulnerabilities.
See every vulnerability recorded for trevora-cir57 →
FAQ
trevora-cir57 is an npm package identified as part of a malicious campaign that aims to inflate developer reputation scores through the publication of derivative packages.
The vulnerability can lead to the installation of malicious packages that compromise the integrity of your project, potentially introducing security risks.
You should uninstall the trevora-cir57 package immediately using the command npm uninstall trevora-cir57 and review your project for any other potentially malicious dependencies.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time, alerting you to any issues without requiring code access.
There is no patch available for trevora-cir57 as it is a malicious package. The best course of action is to remove it from your project.