Malicious Code Injection in amjadnashat Package: npm Vulnerability Overview
Summary
MAL-2025-170859: Malicious code in amjadnashat (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 amjadnashat package is part of the npm ecosystem, primarily used for various JavaScript functionalities. However, it has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages. This campaign is linked to the tea.xyz token reward initiative, which incentivizes developers to inflate their reputation scores through automated package publishing.
Vulnerability Detail
The vulnerability in the amjadnashat package stems from its association with malicious scripts designed to manipulate package.json files. These scripts remove private flags, alter version numbers, and generate random package names, leading to the continuous republishing of variants. This not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly use these tainted 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 amjadnashat
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 measure, you can avoid using the amjadnashat package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The amjadnashat package has been identified as a vector for malicious code that compromises the npm registry. It is essential for developers to remain vigilant, update their packages regularly, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, developers can protect their applications from potential security threats.
See every vulnerability recorded for amjadnashat →
FAQ
The amjadnashat package is an npm package used for various JavaScript functionalities, but it has been compromised by malicious code.
The malicious code can alter your package.json file, remove private flags, and publish unauthorized variants, potentially leading to security vulnerabilities in your application.
If you have installed the amjadnashat package, you should update it immediately to the latest patched version using 'npm update amjadnashat' or consider removing it until a secure version is available.
You can use tools like Vulert, which monitors and alerts you in real-time for open-source vulnerabilities in your software by analyzing your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.