Malicious Code Injection in trevora-cir54: A Threat to npm Packages
Summary
MAL-2025-169250: Malicious code in trevora-cir54 (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
The package trevora-cir54 is part of the npm ecosystem, which is widely used for JavaScript package management. It is designed to facilitate the development and sharing of code among developers. However, trevora-cir54 has been identified as part of a malicious campaign that generates and publishes derivative packages with the intent of inflating developer reputation scores for token rewards. This vulnerability poses a significant risk to the integrity of the npm registry and the security of applications relying on this package.
Vulnerability Detail
The vulnerability in trevora-cir54 originates from its association with the tea.xyz token reward campaign. The package contains malicious scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising applications that depend on these packages. The malicious payload can affect the reputation of developers and the overall trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir54
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, avoid using the trevora-cir54 package and monitor your project's dependencies for any signs of malicious activity. Regularly check your package-lock.json file for vulnerabilities using tools like Vulert, which can alert you to open-source vulnerabilities in real-time.
Conclusion
The trevora-cir54 package poses a significant security risk due to its malicious code designed to manipulate the npm registry. It is crucial for developers to remove this package from their projects and utilize tools like Vulert to monitor for vulnerabilities in their dependencies. Staying informed and proactive is essential to maintaining the security of your applications.
See every vulnerability recorded for trevora-cir54 →
FAQ
trevora-cir54 is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the generation of derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the integrity of your application and affecting its performance and security.
You should uninstall the package immediately using the command 'npm uninstall trevora-cir54' and monitor your dependencies for any further vulnerabilities.
You can use tools like Vulert, which allows you to monitor your package-lock.json file for vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.