Malicious Code Injection in alladadin Package: npm Vulnerability Overview
Summary
MAL-2025-170791: Malicious code in alladadin (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 alladadin package is part of the npm ecosystem, which is widely used for managing JavaScript libraries and dependencies. This package, like many others, is intended to facilitate the development of applications by providing reusable code. However, it has been identified as part of a malicious campaign that exploits npm's publishing mechanisms, leading to significant security risks for developers and their applications.
Vulnerability Detail
The vulnerability in the alladadin package stems from its association with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages contain scripts that automatically generate and publish derivative packages with randomized names, aimed at inflating developer reputation scores. The malicious payload modifies the package.json file by removing private flags, altering version numbers, and continuously republishing variants, which can lead to the pollution of the npm registry and potential exploitation of applications relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall alladadin
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 alladadin package from your project by executing the command: npm uninstall alladadin. This will prevent any malicious code from executing until a secure version is available.
Conclusion
The alladadin package has been identified as a vector for malicious code injection due to its association with a harmful npm campaign. It is essential for developers to take immediate action by uninstalling the package and monitoring their projects for vulnerabilities to ensure the security and integrity of their applications.
See every vulnerability recorded for alladadin →
FAQ
The alladadin package is an npm package used in JavaScript development, but it has been identified as part of a malicious campaign that compromises security.
The vulnerability can lead to the injection of malicious code, which may compromise your application's integrity and security, potentially allowing unauthorized access or data breaches.
You should immediately uninstall the alladadin package and check for any updates or patches. Use npm uninstall alladadin to remove it from your project.
You can use tools like Vulert, which monitors and alerts you in real-time for open-source vulnerabilities in your software using just the package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.