Malicious Code Injection in moaning_aardwolf_z3n: A Threat to npm Packages
Summary
MAL-2025-95517: Malicious code in moaning_aardwolf_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 'moaning_aardwolf_z3n' is part of a larger ecosystem of npm packages that have been associated with the tea.xyz token reward campaign. These packages are designed to automatically generate and publish derivative versions with randomized names, which can inflate developer reputation scores for token rewards. The malicious nature of this package lies in its ability to manipulate package metadata and republish variants, leading to pollution of the npm registry.
Vulnerability Detail
This vulnerability originates from the malicious intent behind the package, which includes scripts that modify the package.json file to remove private flags, alter version numbers, and generate random names for new packages. The continuous republishing of these variants can lead to a cluttered npm registry, making it difficult for developers to find legitimate packages. The potential ramifications include compromised developer reputations and the risk of inadvertently using malicious packages in projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall moaning_aardwolf_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 workaround, you can avoid using the 'moaning_aardwolf_z3n' package and replace it with a trusted alternative. Always verify the integrity and source of packages before installation.
Conclusion
The 'moaning_aardwolf_z3n' package poses a significant threat due to its malicious code designed to manipulate npm package metadata. It is crucial for developers to be vigilant in monitoring their dependencies and to take immediate action to remove any affected packages. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for moaning_aardwolf_z3n →
FAQ
It is an npm package associated with a malicious campaign that generates and publishes derivative packages to inflate developer reputation scores.
Using this package can lead to the inclusion of malicious code in your project, potentially compromising its security and integrity.
You should uninstall the package immediately and check your project for any unintended consequences.
You can use tools like Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.