Malicious Code Injection in trevora-cir22: A Threat to npm Packages
Summary
MAL-2025-169215: Malicious code in trevora-cir22 (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-cir22 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publication of derivative packages, which can inflate developer reputation scores in exchange for token rewards. However, it has been identified as containing malicious scripts that compromise the integrity of the npm registry.
Vulnerability Detail
The vulnerability in trevora-cir22 originates from its inclusion in a campaign that floods npm with malicious packages. These packages contain scripts that modify the package.json file by removing private flags, changing version numbers, and generating random package names. The continuous republishing of these variants leads to pollution of the npm registry, potentially affecting other developers and users relying on legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir22
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 prevent the installation of trevora-cir22 by using the following command: npm uninstall trevora-cir22. Additionally, you can monitor your project for vulnerabilities using tools like Vulert, which can analyze your package-lock.json file for any open-source vulnerabilities.
Conclusion
The trevora-cir22 package poses a significant risk due to its malicious code that modifies package metadata and repopulates the npm registry with harmful variants. It is crucial for developers to take immediate action by updating or removing the package and utilizing monitoring tools like Vulert to safeguard their projects.
See every vulnerability recorded for trevora-cir22 →
FAQ
trevora-cir22 is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages.
The vulnerability can lead to the pollution of the npm registry, affecting the integrity of other packages and potentially compromising your project's security.
If you notice unexpected changes in your package.json file or find random package names, your project may be affected by this vulnerability.
You can use Vulert to monitor your project for open-source vulnerabilities by analyzing your package-lock.json file. Visit Vulert Scanner to check if your application is affected.
Regularly updating your packages and using tools like Vulert to monitor for vulnerabilities can help prevent similar issues in the future.