Malicious Code Injection in trevora-cir58: A Threat to npm Ecosystem
Summary
MAL-2025-169254: Malicious code in trevora-cir58 (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 package 'trevora-cir58' is part of the npm ecosystem, which is widely used for JavaScript package management. It is designed to facilitate the sharing and reuse of code among developers. However, this package has been identified as part of a malicious campaign that aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. This behavior not only compromises the integrity of the npm registry but also poses significant risks to developers who may unknowingly use these compromised packages.
Vulnerability Detail
The vulnerability in 'trevora-cir58' originates from its association with the tea.xyz token reward campaign. The package contains malicious scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This leads to the continuous republishing of these variants, which pollutes the npm registry and can potentially allow attackers to execute arbitrary code in environments that use these packages. The ramifications include compromised applications, loss of data integrity, and a tarnished reputation for developers who inadvertently use these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir58
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 use the following command to prevent the installation of the malicious package: 'npm install --no-audit'. However, this is not a permanent solution, and it is essential to remove the package entirely as soon as possible.
Conclusion
The trevora-cir58 package poses a significant threat to the npm ecosystem due to its malicious behavior aimed at inflating developer reputation scores. It is crucial for developers to be vigilant and remove any instances of this package from their projects to safeguard their applications. Regular monitoring and updating of dependencies can help mitigate the risks associated with such vulnerabilities.
See every vulnerability recorded for trevora-cir58 →
FAQ
trevora-cir58 is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the introduction of malicious code into your application, potentially compromising its security and integrity.
You should immediately uninstall the package using 'npm uninstall trevora-cir58' and review your project for any other potentially compromised packages.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can check your application for vulnerabilities using the Vulert playground without any signup.
No, there are no patches available for trevora-cir58 as it is a malicious package. The best course of action is to remove it from your project.