Malicious Code Injection in afifbilal Package: npm Vulnerability Alert
Summary
MAL-2025-170681: Malicious code in afifbilal (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 afifbilal 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. These packages are designed to inflate developer reputation scores through automated publishing scripts. The presence of such malicious packages poses a significant risk to developers and users relying on npm for secure package management.
Vulnerability Detail
The vulnerability in the afifbilal package stems from its association with the tea.xyz token reward campaign, which utilizes autopublish scripts to create and publish numerous derivative packages with randomized names. This malicious activity modifies the package.json file by removing private flags, altering version numbers, and generating random package names, leading to pollution of the npm registry. The ramifications include potential security risks for users who inadvertently install these compromised packages, as they may contain harmful code.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall afifbilal
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 afifbilal package until a secure version is released. Additionally, consider using alternative packages that provide similar functionality without the associated risks.
Conclusion
The afifbilal package has been identified as a malicious package within the npm ecosystem, posing significant risks to developers and users. It is essential to take immediate action by updating or removing the package to safeguard your applications from potential threats. Utilizing tools like Vulert can help monitor and alert you to vulnerabilities in your software.
See every vulnerability recorded for afifbilal →
FAQ
The afifbilal package is an npm package that has been identified as part of a malicious campaign aimed at exploiting the npm registry.
If your application uses the afifbilal package, it may be at risk of installing malicious code that could compromise its security and functionality.
You should immediately update the package to the latest version or remove it from your project to prevent potential security risks.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities in your software.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.