Malicious Code Injection in trevora-cisa-cir7: A Threat to npm Users
Summary
MAL-2025-169300: Malicious code in trevora-cisa-cir7 (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-cisa-cir7' is part of the npm ecosystem and has been identified as a component of a malicious campaign targeting developers. 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, thereby compromising the integrity of the npm registry.
Vulnerability Detail
The vulnerability in 'trevora-cisa-cir7' stems from its malicious payload that alters the package.json file by removing private flags and changing version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior not only misleads developers but also poses a risk of dependency confusion and potential exploitation of applications relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cisa-cir7
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-cisa-cir7' package and look for alternative packages that provide similar functionality without the associated risks. Additionally, ensure that your package.json file is reviewed for any unauthorized changes.
Conclusion
The 'trevora-cisa-cir7' package poses significant risks due to its malicious behavior, which can compromise the integrity of applications relying on npm packages. It is essential to remove this package and monitor your dependencies for any unauthorized changes. Utilizing tools like Vulert can enhance your security posture by providing real-time alerts for vulnerabilities.
See every vulnerability recorded for trevora-cisa-cir7 →
FAQ
'trevora-cisa-cir7' is an npm package that has been identified as part of a malicious campaign to inflate developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to unauthorized modifications in your package.json file, potentially introducing security risks and dependency confusion in your application.
You should uninstall the 'trevora-cisa-cir7' package immediately and check for any unauthorized changes in your project files.
Yes, tools like Vulert can monitor your package-lock.json file to alert you in real-time for open-source vulnerabilities in your software.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.