Malicious Code Injection in trevora-hisa-cir7: A Threat to npm Packages
Summary
MAL-2025-169310: Malicious code in trevora-hisa-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-hisa-cir7' is part of a series of npm packages associated with the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. The malicious nature of this package lies in its ability to modify critical files and republish variants, ultimately polluting the npm registry.
Vulnerability Detail
The vulnerability in 'trevora-hisa-cir7' originates from its inclusion in a malicious campaign that utilizes autopublish scripts to manipulate package.json files. This manipulation removes private flags, alters version numbers, and generates random package names, leading to a significant risk of registry pollution and potential exploitation of developers' reputations. The malicious payload can compromise the integrity of the npm ecosystem by flooding it with unwanted packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-hisa-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 remove the 'trevora-hisa-cir7' package from your project by executing the command: 'npm uninstall trevora-hisa-cir7'. This will prevent any malicious activity associated with the package until a fix is implemented.
Conclusion
The 'trevora-hisa-cir7' package poses a significant threat due to its malicious code designed to manipulate npm packages. It is crucial for developers to take immediate action by updating or removing the package to safeguard their projects and maintain the integrity of the npm ecosystem.
See every vulnerability recorded for trevora-hisa-cir7 →
FAQ
The vulnerability involves malicious code that modifies package.json files and republish variants, leading to npm registry pollution.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
As a temporary measure, you can uninstall the package using 'npm uninstall trevora-hisa-cir7' to prevent any malicious actions.
Failure to address this vulnerability may lead to reputation damage for developers and an influx of unwanted packages in the npm registry.
Yes, tools like Vulert can automate the monitoring process by analyzing your package-lock.json file for vulnerabilities.