Malicious Code Injection in trevora-cir148: A Threat to npm Ecosystem
Summary
MAL-2025-169204: Malicious code in trevora-cir148 (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-cir148 is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is associated with the tea.xyz token reward initiative, which aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious nature of this package lies in its ability to manipulate package metadata and proliferate harmful variants across the npm ecosystem.
Vulnerability Detail
The vulnerability in trevora-cir148 originates from its design to execute autopublish scripts that modify the package.json file. This modification removes private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. The ramifications include pollution of the npm registry, potential security risks for developers using these packages, and a compromised reputation system within the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir148
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-cir148 package and monitor your project for any dependencies that may inadvertently include it. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities.
Conclusion
The trevora-cir148 package poses a significant threat to the npm ecosystem due to its malicious code that manipulates package metadata and proliferates harmful variants. It is crucial for developers to remove this package and utilize monitoring tools like Vulert to safeguard their projects from potential vulnerabilities.
See every vulnerability recorded for trevora-cir148 →
FAQ
trevora-cir148 is an npm package linked to a malicious campaign that aims to inflate developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the pollution of the npm registry and potential security risks if your project inadvertently uses affected packages.
You should remove the trevora-cir148 package from your project and monitor for any dependencies that may include it.
Yes, you can use Vulert to monitor your package-lock.json for open-source vulnerabilities in real-time without needing to access the code or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.