Malicious Code Injection in amjadarif Package: npm Vulnerability Overview
Summary
MAL-2025-170835: Malicious code in amjadarif (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 amjadarif 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 functionality of such packages is to manipulate developer reputation scores by automatically generating and publishing derivative packages with randomized names.
Vulnerability Detail
The vulnerability in the amjadarif package originates from its design to include autopublish scripts that modify the package.json file. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall amjadarif
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 amjadarif package and look for alternative packages that provide similar functionality without the associated risks. Additionally, consider using tools like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The amjadarif package poses a significant security risk due to its malicious code designed to manipulate npm registry entries. It is crucial for developers to be aware of such vulnerabilities and take proactive measures to protect their applications by removing affected packages and utilizing monitoring tools like Vulert.
See every vulnerability recorded for amjadarif →
FAQ
The amjadarif package is an npm package that is part of a malicious campaign designed to manipulate developer reputation scores by flooding the npm registry with compromised packages.
The vulnerability can lead to the inclusion of malicious code in your application, potentially compromising its security and integrity.
You should uninstall the amjadarif package immediately using 'npm uninstall amjadarif' and monitor your project for any further vulnerabilities.
Yes, tools like Vulert can help monitor and alert you in real-time for open-source vulnerabilities in your software.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.