Malicious Code Injection in trevora-cir40: A Threat to npm Packages
Summary
MAL-2025-169235: Malicious code in trevora-cir40 (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-cir40 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards for developers by generating and publishing derivative packages. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in trevora-cir40 originates from its association with a malicious campaign that floods the npm ecosystem with derivative packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the pollution of the npm registry. This can result in developers unintentionally using compromised packages, which can affect their applications and reputations.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir40
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-cir40 package and monitor your project for any dependencies that may have been affected by this malicious code. Regularly check your package-lock.json file for any unauthorized changes.
Conclusion
The trevora-cir40 package poses a significant risk due to its malicious code that alters package configurations and pollutes the npm registry. 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-cir40 →
FAQ
trevora-cir40 is an npm package associated with a token reward campaign that has been identified as containing malicious code.
The malicious code can modify your package.json file, leading to the installation of compromised packages that may harm your application.
You should uninstall the package immediately using the command npm uninstall trevora-cir40 and check for any affected dependencies.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can also check your application using the Vulert playground without any signup.
There are no patches available for trevora-cir40 due to its malicious nature. It is recommended to remove the package entirely.