Malicious Code Injection in faisalrazafaisalraza Package - npm Vulnerability
Summary
MAL-2025-171190: Malicious code in faisalrazafaisalraza (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 faisalrazafaisalraza package is part of the npm ecosystem, often used for various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. This package, like others in the campaign, is designed to manipulate developer reputation scores by automatically generating and publishing derivative packages with altered metadata.
Vulnerability Detail
The vulnerability originates from the malicious code embedded within the faisalrazafaisalraza package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants. The ramifications include pollution of the npm registry, potential security risks for developers using these packages, and damage to the integrity of the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall faisalrazafaisalraza
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 workaround, you can temporarily avoid using the faisalrazafaisalraza package by removing it from your dependencies. You can do this by running the command: npm uninstall faisalrazafaisalraza. Additionally, consider using Vulert to monitor your project for vulnerabilities in real-time.
Conclusion
The faisalrazafaisalraza package contains malicious code that poses a significant risk to developers and the npm ecosystem. It is crucial to remove this package from your projects and utilize tools like Vulert to monitor for vulnerabilities effectively.
See every vulnerability recorded for faisalrazafaisalraza →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, often used in JavaScript applications.
The vulnerability can lead to the pollution of the npm registry and expose your project to potential security risks.
You should uninstall the faisalrazafaisalraza package immediately and monitor your project for any vulnerabilities.
Yes, you can use Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time.
You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.