Malicious Code Injection in trevora-cir107: A Threat to npm Users
Summary
MAL-2025-169159: Malicious code in trevora-cir107 (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-cir107 is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is associated with the tea.xyz token reward initiative, which has been known to flood the npm ecosystem with harmful packages. The primary function of trevora-cir107 appears to be the automatic generation and publication of derivative packages, which can lead to significant pollution of the npm registry and compromise developer reputation scores.
Vulnerability Detail
The vulnerability in trevora-cir107 stems from its malicious code that modifies the package.json file by removing private flags and altering version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants. This behavior not only clutters the npm registry but also poses risks to developers who may unknowingly install these compromised packages, potentially leading to further exploitation.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir107
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 avoid using trevora-cir107 and any other packages associated with the tea.xyz token reward campaign. Monitor your package-lock.json file for any unauthorized changes and consider using tools like Vulert to keep track of vulnerabilities in your dependencies.
Conclusion
The trevora-cir107 package poses a significant risk to npm users due to its malicious behavior of modifying package files and republishing harmful variants. It is essential to remove this package and regularly audit your dependencies to maintain the security of your projects. Utilizing tools like Vulert can help you stay informed about vulnerabilities in your open-source software.
See every vulnerability recorded for trevora-cir107 →
FAQ
trevora-cir107 is an npm package identified as part of a malicious campaign that generates and publishes harmful derivative packages.
The malicious code modifies your package.json, removes private flags, and can lead to the installation of compromised packages, affecting your project's integrity.
You should uninstall trevora-cir107 immediately using 'npm uninstall trevora-cir107' and audit your project for other vulnerabilities.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.