Malicious Code Injection in elegant_ladybug-appteadev: A Threat to npm Users
Summary
MAL-2025-102038: Malicious code in elegant_ladybug-appteadev (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 'elegant_ladybug-appteadev' 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 known to flood the npm registry with malicious packages. The primary function of such packages is to inflate developer reputation scores through automated publishing scripts, which can lead to significant security risks for users.
Vulnerability Detail
The vulnerability in 'elegant_ladybug-appteadev' originates from its association with malicious scripts designed to manipulate the npm registry. These scripts modify the package.json file to remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of these variants. This not only pollutes the npm registry but also poses a risk of unintentional usage of these compromised packages by developers, 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 elegant_ladybug-appteadev
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 'elegant_ladybug-appteadev' package until a secure version is released. Additionally, consider using the following command to audit your npm packages for vulnerabilities: 'npm audit'. This will help identify any other potential issues in your project.
Conclusion
The 'elegant_ladybug-appteadev' package poses a significant security risk due to its malicious code designed to manipulate the npm registry. It is crucial for developers to stay vigilant, regularly update their packages, and utilize tools like Vulert to monitor for vulnerabilities in their applications.
See every vulnerability recorded for elegant_ladybug-appteadev →
FAQ
The vulnerability involves malicious code that modifies package.json files and repackages them, leading to potential security risks.
You can use Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without any signup.
Using compromised packages can lead to security breaches, data leaks, and unauthorized access to your application.
Regularly audit your dependencies, use tools like Vulert for monitoring, and keep your packages updated to the latest secure versions.
Remove the package immediately and replace it with a secure alternative. Also, update your project dependencies and run security audits.