Malicious Code Injection in hashimfahad Package: npm Vulnerability Overview
Summary
MAL-2025-171296: Malicious code in hashimfahad (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 hashimfahad 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 and sharing of JavaScript code. However, it has been identified as part of a malicious campaign that aims to manipulate the npm registry by flooding it with derivative packages. This behavior not only affects the integrity of the npm ecosystem but also poses risks to developers who may unknowingly use compromised packages.
Vulnerability Detail
The vulnerability in the hashimfahad package originates from its association with the tea.xyz token reward campaign. This campaign employs malicious scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. The scripts continuously republish these variants, leading to pollution of the npm registry. The ramifications include potential security risks for developers who may inadvertently install these malicious packages, as well as damage to the reputation of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall hashimfahad
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 hashimfahad package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity and source of packages before installation.
Conclusion
The hashimfahad package poses a significant risk due to its malicious behavior aimed at manipulating the npm registry. It is crucial for developers to be vigilant and remove any affected packages from their projects. Utilizing tools like Vulert can help in monitoring and identifying vulnerabilities in real-time, ensuring a more secure development environment.
See every vulnerability recorded for hashimfahad →
FAQ
The hashimfahad package is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
The vulnerability can lead to the installation of malicious code, which may compromise your project's security and integrity.
You should uninstall the hashimfahad package immediately using the command npm uninstall hashimfahad.
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 signing up.