Malicious Code Injection in trevora-cir92: A Threat to npm Packages
Summary
MAL-2025-169292: Malicious code in trevora-cir92 (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-cir92 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 for rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in trevora-cir92 originates from its association with a malicious campaign that floods the npm ecosystem with harmful packages. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can potentially harm developers who unknowingly install these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir92
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 measure, you can avoid using the trevora-cir92 package and any packages that depend on it. Review your package-lock.json file to identify any indirect dependencies and remove them accordingly.
Conclusion
The trevora-cir92 package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to remove this package from their projects and monitor for any dependencies that may be affected. Utilizing tools like Vulert can help in identifying and managing such vulnerabilities effectively.
See every vulnerability recorded for trevora-cir92 →
FAQ
trevora-cir92 is an npm package associated with a token reward campaign that has been identified as containing malicious code.
The malicious code modifies your package.json file, removes private flags, and generates random package names, which can lead to the pollution of the npm registry and potential security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can check your application using the Vulert playground at Vulert Scanner without any signup.
You should uninstall the trevora-cir92 package immediately using 'npm uninstall trevora-cir92' and check for any dependencies that may rely on it.
Currently, there is no patched version available for trevora-cir92. It is recommended to remove the package and monitor for updates.