Malicious Code Injection in fawadrafiq Package: npm Vulnerability Overview
Summary
MAL-2025-171209: Malicious code in fawadrafiq (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 fawadrafiq package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages. The primary function of fawadrafiq is to facilitate the tea.xyz token reward campaign, which has led to the creation of numerous packages that manipulate developer reputation scores.
Vulnerability Detail
The vulnerability in the fawadrafiq package originates from its association with a malicious campaign that includes scripts designed to automatically generate and publish derivative packages. These scripts modify the package.json file to remove private flags, alter version numbers, and create random package names, ultimately leading to pollution of the npm registry. The ramifications include compromised developer reputations and potential security risks for applications relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall fawadrafiq
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 fawadrafiq package from your project by executing the following command: npm uninstall fawadrafiq. This will prevent any malicious code from executing while you assess the impact on your application.
Conclusion
The fawadrafiq package has been identified as part of a malicious campaign that poses significant risks to developers and their applications. It is crucial to take immediate action by uninstalling the package and monitoring for updates. Utilizing tools like Vulert can help maintain the security of your projects.
See every vulnerability recorded for fawadrafiq →
FAQ
fawadrafiq is an npm package associated with the tea.xyz token reward campaign, which has been identified as malicious.
The vulnerability can lead to the pollution of the npm registry and compromise the integrity of your application if it relies on affected packages.
You should uninstall the fawadrafiq package and monitor for any updates or patches that address the vulnerability.
Yes, you can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time using just your package-lock.json file.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without requiring any signup.