Malicious Code Injection in amjadihab Package: npm Vulnerability Overview
Summary
MAL-2025-170845: Malicious code in amjadihab (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 amjadihab package is part of the npm ecosystem, primarily used for JavaScript development. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with packages that manipulate developer reputation scores. This package, like others in the campaign, is designed to automatically generate and publish derivative packages, which can lead to significant issues in the npm registry.
Vulnerability Detail
The vulnerability in the amjadihab package stems from its malicious code that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, which can lead to pollution of the npm registry. This behavior is part of a broader scheme to inflate developer reputation scores for token rewards, posing a risk to developers and users relying on the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall amjadihab
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 amjadihab 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.
Conclusion
The amjadihab package poses a significant risk due to its malicious code that alters package metadata and contributes to npm registry pollution. It is crucial to uninstall this package and monitor your project for vulnerabilities using tools like Vulert to ensure the security and integrity of your software.
See every vulnerability recorded for amjadihab →
FAQ
The amjadihab package is an npm package that is part of a campaign to manipulate developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the pollution of the npm registry, potentially affecting the integrity of your project and introducing security risks.
You should uninstall the amjadihab package immediately and check for any dependencies that may be affected.
Yes, you can use Vulert to monitor your project for open-source vulnerabilities in real-time without needing to access the code or installation.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.