Malicious Code Injection in Chetanrao Package: A Threat to npm Ecosystem
Summary
MAL-2025-171033: Malicious code in chetanrao (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
Chetanrao is an npm package that has been identified as part of a malicious campaign associated with the tea.xyz token reward initiative. This package is designed to manipulate the npm registry by generating and publishing numerous derivative packages with randomized names. Its primary functionality revolves around inflating developer reputation scores to gain rewards within the tea protocol ecosystem. However, its malicious nature poses significant risks to developers and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the Chetanrao package stems from its inclusion in a malicious campaign that employs autopublish scripts to modify package.json files. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants that pollute the npm registry. This can result in developers unknowingly using compromised packages, which may lead to 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 chetanrao
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 Chetanrao package from your project by executing the command: npm uninstall chetanrao. This will prevent any potential exploitation of the vulnerability until a patch is confirmed.
Conclusion
The Chetanrao package poses a significant threat to the npm ecosystem due to its malicious code designed to manipulate the registry. It is essential for developers to take immediate action by updating or removing the package and to implement monitoring solutions like Vulert to safeguard their applications against such vulnerabilities.
See every vulnerability recorded for chetanrao →
FAQ
Chetanrao is an npm package involved in a malicious campaign that aims to inflate developer reputation scores through the generation of numerous derivative packages.
The vulnerability can lead to the introduction of compromised packages into your application, potentially resulting in security breaches and loss of trust in your software.
If you have installed Chetanrao, it is recommended to uninstall it immediately and check for any other affected packages in your project.
You can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software using just the package-lock.json file. You can also check if your application is affected by this vulnerability using the Vulert playground without any signup.
To prevent future vulnerabilities, regularly update your packages, use tools like Vulert for monitoring, and review package dependencies for any suspicious activity.