Malicious Code Injection in trevora-cir91: A Threat to npm Packages
Summary
MAL-2025-169291: Malicious code in trevora-cir91 (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-cir91 is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package, like others in the campaign, is designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. Its functionality is compromised due to the presence of malicious code that alters package metadata and republishing behavior.
Vulnerability Detail
The vulnerability in trevora-cir91 originates from its association with a malicious campaign that employs scripts to modify the package.json file. This includes removing private flags, changing version numbers, and generating random package names. The malicious payload continuously republishes these variants, polluting the npm registry and potentially leading to security risks for developers who unknowingly use these compromised packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir91
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 remove the trevora-cir91 package from your project by executing the following command: npm uninstall trevora-cir91. This will prevent any malicious code from executing while you assess your dependencies.
Conclusion
The trevora-cir91 package is compromised with malicious code that alters package metadata and republishing behavior, posing a significant risk to developers. It is crucial to uninstall the package and monitor your project for vulnerabilities using tools like Vulert to ensure ongoing security.
See every vulnerability recorded for trevora-cir91 →
FAQ
trevora-cir91 is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through automated publishing of compromised packages.
The malicious code modifies your package.json file, potentially exposing your project to security vulnerabilities and cluttering the npm registry with unwanted packages.
You should uninstall the package immediately and check for any other affected packages in your project.
You can use Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time. You can also check your application against known vulnerabilities using the Vulert playground without any signup.
Regularly audit your dependencies, use tools like Vulert for monitoring, and stay updated on security advisories related to the packages you use.