Malicious Code Injection in amjadhejab Package: npm Vulnerability Overview
Summary
MAL-2025-170843: Malicious code in amjadhejab (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 amjadhejab package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publishing of derivative packages, which can inflate developer reputation scores in exchange for tea protocol token rewards. However, its functionality has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability in the amjadhejab package stems from its malicious payload that modifies the package.json file. It removes private flags, alters version numbers, and generates random package names, primarily themed around Indonesian culture. This behavior leads to the continuous republishing of variants, which pollutes the npm registry and can potentially harm developers by affecting their reputation and the integrity of their projects.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall amjadhejab
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 amjadhejab package altogether and monitor your package-lock.json file for any unauthorized changes. Additionally, consider using tools like Vulert to monitor for vulnerabilities in your dependencies.
Conclusion
The amjadhejab package poses a significant security risk due to its malicious code that alters package configurations and floods the npm registry. It is crucial for developers to remove this package and monitor their dependencies for vulnerabilities to maintain the integrity of their projects.
See every vulnerability recorded for amjadhejab →
FAQ
The amjadhejab package is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publishing of packages.
The vulnerability can lead to unauthorized modifications in your project’s package.json file, potentially harming your project's integrity and developer reputation.
You should uninstall the amjadhejab package immediately using 'npm uninstall amjadhejab' and monitor your project for any unauthorized changes.
Yes, you can use Vulert, which monitors and alerts in real-time for open-source vulnerabilities in your software by analyzing your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.