Malicious Code Injection in adnanyasser Package: A Threat to npm Users
Summary
MAL-2025-170676: Malicious code in adnanyasser (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 adnanyasser package is part of the npm ecosystem, which is widely used for JavaScript development. It is designed to facilitate various functionalities within applications. However, this package has been identified as part of a malicious campaign that floods the npm registry with derivative packages, potentially compromising the integrity of applications that depend on it.
Vulnerability Detail
The vulnerability in the adnanyasser package originates from its association with the tea.xyz token reward campaign. This campaign employs autopublish scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants, polluting the npm registry and inflating developer reputation scores. This can lead to security risks for applications that inadvertently use these compromised packages, exposing them to potential exploits.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall adnanyasser
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 remove the adnanyasser package from your project by executing the following command: npm uninstall adnanyasser. This will prevent any potential exploitation from the malicious code until a fix is applied.
Conclusion
The adnanyasser package poses a significant security risk due to its malicious code injection. It is crucial for developers to take immediate action by updating or removing the package to safeguard their applications. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in real-time.
See every vulnerability recorded for adnanyasser →
FAQ
The adnanyasser package is an npm package used in JavaScript development, but it has been identified as part of a malicious campaign.
The vulnerability can lead to the injection of malicious code, which may compromise the security and integrity of your application.
You should update the package to the latest version or remove it from your project to avoid potential security risks.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just package-lock.json. You can check if your application is affected by visiting the Vulert playground.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities in your application without requiring any signup.