Malicious Code Injection in adnanwaleed Package: A Threat to npm Ecosystem
Summary
MAL-2025-170674: Malicious code in adnanwaleed (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 adnanwaleed package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others, is intended to facilitate the development and distribution of JavaScript applications. However, it has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages that can inflate developer reputation scores for token rewards. This vulnerability poses a significant risk to developers and users relying on the integrity of npm packages.
Vulnerability Detail
The vulnerability in the adnanwaleed package originates from its association with the tea.xyz token reward campaign. It contains malicious scripts that 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 behavior not only pollutes the npm registry but also compromises the security and reliability of the packages within it, potentially leading to further exploitation by malicious actors.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall adnanwaleed
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 adnanwaleed package and replace it with a trusted alternative. Always verify the integrity and source of packages before including them in your project.
Conclusion
The adnanwaleed package poses a significant threat to the npm ecosystem due to its malicious behavior. It is crucial for developers to be vigilant, regularly update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, you can help safeguard your projects from potential exploitation.
See every vulnerability recorded for adnanwaleed →
FAQ
The adnanwaleed package is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
The vulnerability can lead to the pollution of the npm registry and compromise the security of your project by introducing malicious code.
You should uninstall the adnanwaleed package immediately using the command npm uninstall adnanwaleed.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software using just the package-lock.json file. You can check your application for vulnerabilities using the Vulert playground at Vulert Scanner.
Yes, always look for well-reviewed and widely used packages in the npm registry that serve similar functionalities without the associated risks.