Malicious Code Injection in trevora-cir103: A Threat to npm Users
Summary
MAL-2025-169155: Malicious code in trevora-cir103 (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-cir103 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 aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious nature of this package lies in its ability to modify critical files and republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in trevora-cir103 originates from its design to include autopublish scripts that automatically generate and publish derivative packages with randomized names. This malicious payload alters the package.json file by removing private flags, changing version numbers, and creating random package names, which can lead to significant pollution of the npm registry. The ramifications include compromised developer reputations, potential security risks for applications using these packages, and a general degradation of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir103
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 the trevora-cir103 package and monitor your dependencies for any instances of this malicious package. You can also use the following command to uninstall the package: npm uninstall trevora-cir103.
Conclusion
The trevora-cir103 package poses a significant risk to npm users due to its malicious design aimed at manipulating the npm registry. It is essential to take immediate action by removing the package and monitoring your dependencies. Utilizing tools like Vulert can help in identifying and managing such vulnerabilities effectively.
See every vulnerability recorded for trevora-cir103 →
FAQ
trevora-cir103 is an npm package involved in a malicious campaign that aims to inflate developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the integrity of your application and affecting its security.
If you have installed trevora-cir103, it is crucial to uninstall it immediately and monitor your dependencies for any malicious packages.
Yes, you can use tools like Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.