Malicious Code Injection in trevora-cir26: A Threat to npm Packages
Summary
MAL-2025-169219: Malicious code in trevora-cir26 (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-cir26 package is part of a broader ecosystem within npm, primarily associated with the tea.xyz token reward campaign. This package, like others in the campaign, is designed to manipulate the npm registry by creating and publishing numerous derivative packages with randomized names. Its functionality is compromised by a malicious payload that alters critical metadata in the package.json file, posing significant risks to developers and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in trevora-cir26 originates from its association with a malicious campaign that floods the npm registry with derivative packages. The malicious code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, which can lead to the pollution of the npm registry. This not only affects the reputation of developers but also poses security risks as these packages may contain harmful code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-cir26
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-cir26 package until a patched version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The trevora-cir26 package poses a significant threat due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to stay informed about such vulnerabilities and take necessary actions to secure their projects.
See every vulnerability recorded for trevora-cir26 →
FAQ
trevora-cir26 is an npm package associated with the tea.xyz token reward campaign, designed to manipulate the npm registry.
The malicious code can alter your package.json file, remove private flags, and pollute the npm registry with unwanted packages, potentially compromising your project's integrity.
If you have installed trevora-cir26, it is advisable to update the package to the latest version or remove it from your project until a secure version is available.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.