Malicious Code Injection in amjadsalim Package: npm Vulnerability Overview
Summary
MAL-2025-170868: Malicious code in amjadsalim (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 amjadsalim package is part of the npm ecosystem, primarily used for JavaScript development. This package has been identified as part of a malicious campaign that aims to exploit npm's publishing capabilities. It is designed to automatically generate and publish derivative packages with randomized names, which can inflate developer reputation scores for token rewards in the tea.xyz protocol. This behavior poses significant risks to developers and the integrity of the npm registry.
Vulnerability Detail
The vulnerability in the amjadsalim package originates from its involvement in the tea.xyz token reward campaign. It contains malicious scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This results in the continuous republishing of variants, which pollutes the npm registry and can lead to security risks for users who inadvertently install these compromised packages. The malicious payload can compromise the integrity of applications relying on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall amjadsalim
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 amjadsalim package and look for alternative packages that provide similar functionality without the associated risks. Additionally, you can monitor your project for any dependencies that may have been affected by this vulnerability.
Conclusion
The amjadsalim package poses a significant security risk due to its malicious code designed to exploit npm's publishing system. It is crucial for developers to remove this package and monitor their applications for any vulnerabilities. Utilizing tools like Vulert can aid in maintaining the security of your software.
See every vulnerability recorded for amjadsalim →
FAQ
The amjadsalim package is an npm package that has been identified as part of a malicious campaign to exploit npm's publishing features.
This vulnerability can lead to the installation of compromised packages, which may introduce security risks and affect the integrity of your application.
You should uninstall the amjadsalim package immediately using 'npm uninstall amjadsalim' and monitor your project for any other affected dependencies.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in your software by analyzing your package-lock.json file. You can check if your application is affected by this vulnerability using the Vulert playground without any signup.
Regularly update your packages, monitor for vulnerabilities using tools like Vulert, and review the security advisories for the packages you use.