Malicious Code Injection in trevora-cir9: A Threat to npm Packages
Summary
MAL-2025-169289: Malicious code in trevora-cir9 (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-cir9 is part of the npm ecosystem, which is widely used for JavaScript package management. It is associated with the tea.xyz token reward campaign, which has been known to flood npm with malicious packages. These packages often contain scripts designed to manipulate package metadata and inflate developer reputation scores, making them a significant threat to the integrity of the npm registry.
Vulnerability Detail
The vulnerability in trevora-cir9 arises from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants, polluting the npm registry and potentially compromising the security of applications that depend on these packages. The malicious payload is designed to automate the creation and publication of derivative packages, which can mislead developers and users about the authenticity and safety of the software.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir9
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 workaround, you can prevent the installation of trevora-cir9 by using the following command to uninstall it: npm uninstall trevora-cir9. Additionally, consider using tools like Vulert to monitor your package-lock.json for vulnerabilities in real-time.
Conclusion
The trevora-cir9 package poses a significant security risk due to its malicious code that modifies package metadata and floods the npm registry. It is crucial for developers to remove this package from their projects and monitor for vulnerabilities using tools like Vulert to ensure the safety of their applications.
See every vulnerability recorded for trevora-cir9 →
FAQ
trevora-cir9 is an npm package that has been identified as part of a malicious campaign targeting the npm registry.
The vulnerability can lead to the installation of malicious code that alters package metadata, potentially compromising the security and integrity of your application.
You should uninstall the package immediately using the command: npm uninstall trevora-cir9.
You can use Vulert, which monitors your package-lock.json for open-source 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 any signup.