Malicious Code Injection in trevora-cir114: A Threat to npm Users
Summary
MAL-2025-169167: Malicious code in trevora-cir114 (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-cir114 is an npm package that is part of the tea.xyz token reward campaign. This package is designed to facilitate token rewards through the automatic generation and publication of derivative packages. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the malicious payload embedded within the trevora-cir114 package. This payload modifies the package.json file by removing private flags, altering version numbers, and generating random package names. It continuously republishes these variants, leading to pollution of the npm registry and potential exploitation of developers' reputation scores. The impact includes unauthorized modifications to projects and a significant risk of dependency confusion.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir114
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 prevent the installation of trevora-cir114 by adding it to your project's .npmrc file with the following line: 'package-lock=false'. This will help avoid automatic installations of this malicious package until it is fully removed from the npm registry.
Conclusion
The trevora-cir114 package poses a significant risk due to its embedded malicious code, which can compromise the integrity of projects using it. Immediate action is required to remove this package and monitor for similar vulnerabilities. Utilizing tools like Vulert can help maintain the security of your dependencies.
See every vulnerability recorded for trevora-cir114 →
FAQ
trevora-cir114 is an npm package associated with the tea.xyz token reward campaign, which has been identified to contain malicious code.
The malicious code modifies your package.json file, removes private flags, and republishes variants, potentially leading to unauthorized changes and dependency confusion.
You should uninstall trevora-cir114 immediately using 'npm uninstall trevora-cir114' and check your project for any unauthorized changes.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just package-lock.json. You can check your application for vulnerabilities without signup at the Vulert playground.
Yes, consider using other reputable npm packages that serve similar functionalities without the associated risks of trevora-cir114.