Malicious Code Injection in amjadkarem Package: npm Vulnerability Overview
Summary
MAL-2025-170849: Malicious code in amjadkarem (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 amjadkarem 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 npm with malicious packages. The functionality of amjadkarem is compromised due to its involvement in generating and publishing derivative packages that manipulate developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in the amjadkarem package stems from its malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to pollute the npm registry by continuously republishing variants, which can lead to significant security risks, including the potential for dependency confusion and the introduction of further malicious packages into projects that rely on npm.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall amjadkarem
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 amjadkarem package from your project by executing the command: 'npm uninstall amjadkarem'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The amjadkarem package poses a significant security risk due to its malicious code that alters package metadata and floods the npm registry. It is crucial for developers to take immediate action by updating or removing the package to safeguard their projects.
See every vulnerability recorded for amjadkarem →
FAQ
The amjadkarem package is an npm package that has been identified as malicious, involved in generating and publishing derivative packages for token rewards.
The vulnerability can lead to the introduction of malicious code into your project, potentially compromising security and functionality.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check if your application is affected without needing to sign up.
If immediate updates are not possible, consider removing the package as a temporary measure to mitigate risks.
Detailed information can be found in the vulnerability report and through security advisories related to the npm ecosystem.