Malicious Code Injection in trevora-cir12 Package - npm Vulnerability
Summary
MAL-2025-169173: Malicious code in trevora-cir12 (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 trevora-cir12 package is part of the npm ecosystem, often utilized for various JavaScript applications. It has been identified as part of a broader campaign involving the tea.xyz token reward system, which aims to manipulate developer reputation through the creation of numerous derivative packages. This package, like others in the campaign, is designed to automatically generate and publish new packages with altered metadata, leading to potential security risks.
Vulnerability Detail
The vulnerability in the trevora-cir12 package stems from its malicious code that modifies the package.json file. This code removes private flags, alters version numbers, and generates random package names, which can lead to the pollution of the npm registry. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which employs scripts to inflate developer reputation scores. The ramifications include the potential for unauthorized access to sensitive information and the degradation of the npm ecosystem's integrity.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir12
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 remove the trevora-cir12 package from your project by executing 'npm uninstall trevora-cir12'. This will prevent any malicious actions from occurring while you seek a secure alternative.
Conclusion
The trevora-cir12 package has been identified as a vector for malicious code that can compromise the integrity of your project. It is essential to take immediate action by updating or removing the package to safeguard your application from potential threats. Utilizing tools like Vulert can help you monitor your project for such vulnerabilities in real-time.
See every vulnerability recorded for trevora-cir12 →
FAQ
The trevora-cir12 package is an npm package that has been linked to a malicious campaign aimed at manipulating developer reputation through the creation of numerous derivative packages.
The malicious code modifies your package.json file, potentially exposing your project to security risks and degrading the npm ecosystem's integrity.
If you have installed the trevora-cir12 package, it is crucial to uninstall it immediately and check for any updates or patches.
Yes, you can use Vulert, a tool that monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file. You can check your application for vulnerabilities using the Vulert playground without any signup.
Detailed information about this vulnerability can be found in the npm registry and through security advisories related to the trevora-cir12 package.