Malicious Code Injection in amjadlaith Package: A Threat to npm Users
Summary
MAL-2025-170853: Malicious code in amjadlaith (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 amjadlaith 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 npm's package management system. This package is linked to the tea.xyz token reward scheme, which has flooded the npm registry with numerous derivative packages that can harm developers' reputations and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability in the amjadlaith package stems from its inclusion in a malicious campaign that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is designed to inflate developer reputation scores for token rewards while polluting the npm registry with derivative packages. The malicious payload can lead to unauthorized access and manipulation of code, potentially compromising applications that rely on this package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall amjadlaith
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 amjadlaith package from your project by executing: 'npm uninstall amjadlaith'. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The amjadlaith package poses a significant risk due to its malicious code designed to exploit the npm ecosystem. It is essential for developers to be vigilant, update their packages, and utilize tools like Vulert to monitor for vulnerabilities. Taking proactive measures can help safeguard applications from potential threats.
See every vulnerability recorded for amjadlaith →
FAQ
The amjadlaith package is a JavaScript package available on npm, which has been identified as part of a malicious campaign targeting the npm ecosystem.
The vulnerability can lead to unauthorized modifications in your application's dependencies, potentially compromising its security and functionality.
If you have installed amjadlaith, it is crucial to uninstall it immediately and monitor for any updates or patches that may be released.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.