Malicious Code Injection in trevora-cir35: A Threat to npm Ecosystem
Summary
MAL-2025-169229: Malicious code in trevora-cir35 (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-cir35 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate the generation and publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in trevora-cir35 originates from its inclusion in a malicious campaign that floods the npm ecosystem with harmful packages. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also poses a significant risk to developers who may unknowingly install these compromised packages, potentially leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir35
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-cir35 package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by visiting the Vulert playground at https://vulert.com/scanner.
Conclusion
The trevora-cir35 package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry with compromised packages. It is crucial for developers to remove this package and monitor their projects for vulnerabilities to maintain the integrity of their applications.
See every vulnerability recorded for trevora-cir35 →
FAQ
trevora-cir35 is an npm package involved in a token reward campaign that has been identified as containing malicious code.
The malicious code modifies your package.json, removes private flags, and generates random package names, which can lead to further exploitation and pollution of the npm registry.
You should uninstall the trevora-cir35 package immediately using the command npm uninstall trevora-cir35 and check for any dependencies that may rely on it.
Currently, there is no patched version available for trevora-cir35. The best course of action is to remove the package and look for secure alternatives.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check your application at Vulert Scanner.