Malicious Code Injection in wilful_ladybug_z3n: A Threat to npm Packages
Summary
MAL-2025-110926: Malicious code in wilful_ladybug_z3n (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 'wilful_ladybug_z3n' is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to manipulate the npm ecosystem by automatically generating and publishing derivative packages with randomized names. This behavior is intended to inflate developer reputation scores for token rewards, but it poses significant risks to the integrity of the npm registry and developers' projects.
Vulnerability Detail
The vulnerability in 'wilful_ladybug_z3n' stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants. This not only pollutes the npm registry but also compromises the security of applications relying on these packages, potentially leading to unauthorized access or data breaches.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall wilful_ladybug_z3n
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 measure, avoid using the 'wilful_ladybug_z3n' package and consider using alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project's dependencies using tools like Vulert, which alerts you to open-source vulnerabilities in real-time without requiring code access or installation.
Conclusion
The 'wilful_ladybug_z3n' package poses a significant threat to the npm ecosystem due to its malicious behavior. It is essential for developers to be vigilant and remove such packages from their projects to maintain security and integrity. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for wilful_ladybug_z3n →
FAQ
'wilful_ladybug_z3n' is an npm package that is part of a malicious campaign to inflate developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially compromising the security of your application and exposing it to unauthorized access.
You should uninstall the package immediately using 'npm uninstall wilful_ladybug_z3n' and monitor for any updates or patches.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without any signup.
Vulert is a monitoring tool that uses package-lock.json to alert users in real-time about open-source vulnerabilities in their software, ensuring better security management.