Malicious Code Injection in adnansaleh Package: npm Vulnerability Overview
Summary
MAL-2025-170673: Malicious code in adnansaleh (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 adnansaleh package 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 the adnansaleh package is to facilitate the automatic generation and publication of derivative packages, often with randomized names, to inflate developer reputation scores for token rewards. This behavior raises significant security concerns as it compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the adnansaleh package originates from its malicious payload, which 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 to pollute the npm registry. This not only affects the reputation of legitimate developers but also poses a risk of dependency confusion and potential exploitation of applications relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall adnansaleh
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 adnansaleh package in your project. If it is a dependency of another package, consider using npm's 'npm audit' command to identify and remove any dependencies that rely on it.
Conclusion
The adnansaleh package presents a significant security risk due to its malicious behavior of modifying package files and flooding the npm registry with harmful variants. It is crucial for developers to be aware of this vulnerability and take appropriate actions to secure their applications.
See every vulnerability recorded for adnansaleh →
FAQ
The adnansaleh package is an npm package associated with the tea.xyz token reward campaign, designed to generate and publish derivative packages automatically.
The vulnerability can lead to the pollution of the npm registry, potentially causing your application to depend on malicious packages, which can compromise security.
You should update the package to a patched version if available or remove it from your project to mitigate the risk.
You can use tools like Vulert, which monitors your package-lock.json file for open-source 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 any signup.