Malicious Code Injection in trevora-cir149: A Threat to npm Users
Summary
MAL-2025-169205: Malicious code in trevora-cir149 (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-cir149 is an npm package that has been identified as part of a malicious campaign targeting developers in the npm ecosystem. This package is associated with the tea.xyz token reward initiative, which has been known to flood the npm registry with numerous derivative packages. The primary functionality of this package is to manipulate the npm registry by generating and publishing variants of itself, thereby inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in trevora-cir149 stems from its malicious payload 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, which pollutes the npm registry and can compromise the integrity of other packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs autopublish scripts to automate the creation of these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir149
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-cir149 package from your project by executing the command: 'npm uninstall trevora-cir149'. This will prevent any malicious activity associated with this package until a secure version is released.
Conclusion
The trevora-cir149 package poses a significant risk to npm users due to its malicious behavior that alters package metadata and floods the npm registry. It is essential for developers to take immediate action by uninstalling the package and monitoring for updates. Utilizing tools like Vulert can help in identifying vulnerabilities in real-time.
See every vulnerability recorded for trevora-cir149 →
FAQ
trevora-cir149 is an npm package involved in a malicious campaign that manipulates the npm registry.
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of your project's dependencies.
You should uninstall the package immediately and monitor for any updates or patches that may be released.
Yes, you can use Vulert, which monitors vulnerabilities using just package-lock.json. Visit Vulert Scanner to check your application.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software without requiring code access or installation.