Malicious Code Injection in ameerhaider Package: A Threat to npm Users
Summary
MAL-2025-170811: Malicious code in ameerhaider (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 ameerhaider package is part of the npm ecosystem, which is widely used for JavaScript package management. 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 targets npm users, potentially compromising their projects and security.
Vulnerability Detail
The vulnerability in the ameerhaider package originates from its association with the tea.xyz token reward campaign, which has been flooding the npm registry with malicious packages. These packages contain scripts designed to automatically generate and publish derivative packages with randomized names, effectively inflating developer reputation scores for token rewards. The malicious payload modifies the package.json file to remove private flags, alters version numbers, and continuously republishes variants, polluting the npm registry and potentially leading to security risks for users who unknowingly install these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall ameerhaider
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, avoid using the ameerhaider package and consider using alternative packages that provide similar functionality without the associated risks. You can also monitor your project for vulnerabilities using tools like Vulert, which can alert you to open-source vulnerabilities in real-time.
Conclusion
The ameerhaider package poses a significant risk due to its malicious code designed to manipulate npm registry entries. It is essential for developers to be vigilant, remove affected packages, and utilize tools like Vulert to safeguard their projects against such vulnerabilities.
See every vulnerability recorded for ameerhaider →
FAQ
The ameerhaider package is an npm package used in JavaScript development, but it has been identified as part of a malicious campaign.
The vulnerability can lead to the installation of malicious code, which may compromise your project's security and integrity.
You should uninstall the ameerhaider package immediately using 'npm uninstall ameerhaider' and check your project for any other vulnerabilities.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities.
Yes, consider using other reputable npm packages that offer similar functionality without the associated risks.