Malicious Code Injection in handsome_elephant_requirement Package
Summary
MAL-2025-94781: Malicious code in handsome_elephant_requirement (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 handsome_elephant_requirement package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been implicated in a malicious campaign that aims to inflate developer reputation scores through the generation of derivative packages. It is designed to automatically publish variants with randomized names, which can lead to significant pollution of the npm registry.
Vulnerability Detail
The vulnerability originates from the package being part of a malicious campaign associated with the tea.xyz token reward system. It contains scripts that modify the package.json file to remove private flags, alter version numbers, and create random package names. This behavior not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly use these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall handsome_elephant_requirement
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 handsome_elephant_requirement package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities in real-time.
Conclusion
The handsome_elephant_requirement package poses a significant risk due to its malicious code designed to manipulate npm registry integrity. It is crucial for developers to uninstall this package and monitor their projects for vulnerabilities to maintain security and integrity.
See every vulnerability recorded for handsome_elephant_requirement →
FAQ
It is an npm package that has been linked to a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
Using this package can compromise the integrity of your project by introducing malicious code, which can lead to security vulnerabilities and potential data breaches.
You should uninstall the handsome_elephant_requirement package immediately and monitor your project for any signs of compromise.
You can use tools like Vulert, which allows you to monitor and alert in real-time for open-source vulnerabilities using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.