Malicious Code Injection in trevora-yisa-cir7: A Threat to npm Users
Summary
MAL-2025-169337: Malicious code in trevora-yisa-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-yisa-cir7' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been linked to the proliferation of malicious packages designed to inflate developer reputation scores. Such packages often contain scripts that automate the creation and publication of derivative packages, potentially compromising the integrity of the npm registry.
Vulnerability Detail
The vulnerability in 'trevora-yisa-cir7' originates from its association with malicious scripts that modify the package.json file to remove private flags, alter version numbers, and generate random package names. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly incorporate these malicious packages into their projects, leading to potential security breaches and loss of trust in the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall trevora-yisa-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 use the following command to prevent the installation of the 'trevora-yisa-cir7' package in your project: 'npm install --no-save trevora-yisa-cir7'. However, the best practice is to remove the package entirely.
Conclusion
The 'trevora-yisa-cir7' package poses a significant risk to npm users due to its malicious code that alters package metadata and publishes harmful variants. It is essential to remove this package and monitor your dependencies for vulnerabilities using tools like Vulert. By staying vigilant and proactive, developers can protect their projects from potential threats.
See every vulnerability recorded for trevora-yisa-cir7 →
FAQ
'trevora-yisa-cir7' is an npm package that has been identified as malicious, associated with scripts that manipulate package metadata and publish harmful variants.
You can use Vulert to monitor your project for vulnerabilities. By analyzing your package-lock.json file, Vulert provides real-time alerts for any open-source vulnerabilities.
Using malicious packages can lead to security breaches, data loss, and compromised application integrity, as they may execute harmful scripts or expose sensitive information.
It is advisable to regularly check for vulnerabilities, especially after adding new packages or updating existing ones. Tools like Vulert can help automate this process.
Not all npm packages are trustworthy. It is crucial to review package sources, read documentation, and check for community feedback before integrating them into your projects.