Malicious Code Injection in trevora-cir7: A Threat to npm Users
Summary
MAL-2025-169267: Malicious code in trevora-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-cir7 is part of the npm ecosystem, which is widely used for managing JavaScript packages. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing system. It is designed to generate and publish derivative packages with random names, thereby inflating developer reputation scores for token rewards associated with the tea.xyz protocol. The malicious behavior of this package poses a significant risk to developers and users relying on npm for secure package management.
Vulnerability Detail
The vulnerability in trevora-cir7 originates from its involvement in the tea.xyz token reward campaign, which has led to the creation of numerous malicious packages on npm. The malicious payload within trevora-cir7 modifies the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior not only pollutes the npm registry but also compromises the integrity of the packages, potentially leading to security risks for applications that depend on them.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-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 trevora-cir7 and any other packages that may be part of the malicious campaign. Regularly audit your package-lock.json file to identify and remove any suspicious packages. You can also utilize tools like Vulert to monitor your project for vulnerabilities. For example, you can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The trevora-cir7 package poses a significant security risk due to its malicious behavior of modifying package metadata and republishing under random names. It is crucial for developers to remove this package and regularly audit their dependencies to maintain the integrity of their applications. Utilizing tools like Vulert can aid in identifying and mitigating such vulnerabilities effectively.
See every vulnerability recorded for trevora-cir7 →
FAQ
trevora-cir7 is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
The vulnerability can lead to the injection of malicious code into your application, compromising its security and integrity.
You should uninstall trevora-cir7 immediately using the command npm uninstall trevora-cir7 and audit your dependencies for other potential vulnerabilities.
Regularly update your packages, use trusted sources, and utilize tools like Vulert to monitor for vulnerabilities in your project.
Vulert is a tool that monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. It provides real-time alerts for any vulnerabilities detected.