Malicious Code Injection in fajar-teh50-ruro: A Threat to npm Users
Summary
MAL-2025-102543: Malicious code in fajar-teh50-ruro (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 package fajar-teh50-ruro is part of a series of npm packages that emerged during the tea.xyz token reward campaign. These packages are designed to inflate developer reputation scores by automatically generating and publishing derivative packages with randomized names. This behavior not only clutters the npm registry but also poses a significant risk to users who may unknowingly install these malicious packages.
Vulnerability Detail
The vulnerability in fajar-teh50-ruro stems from its malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This allows the package to continuously republish variants, polluting the npm registry and potentially leading to unauthorized access or exploitation of systems that rely on these packages. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which incentivizes the creation of such malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall fajar-teh50-ruro
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 prevent the installation of this package by using npm's audit feature to identify vulnerabilities in your project. Run the following command to check for vulnerabilities: npm audit. Additionally, consider using a tool like Vulert to monitor your dependencies for vulnerabilities in real-time.
Conclusion
The fajar-teh50-ruro package poses a significant threat to npm users due to its malicious behavior of modifying package files and republishing variants. It is essential to remove this package and monitor your dependencies for vulnerabilities to ensure the security of your applications.
See every vulnerability recorded for fajar-teh50-ruro →
FAQ
fajar-teh50-ruro is an npm package that is part of a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to unauthorized modifications in your project’s dependencies, potentially compromising the security and integrity of your application.
You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If you have installed fajar-teh50-ruro, it is crucial to uninstall it immediately and monitor your project for any other vulnerabilities.
Utilizing tools like Vulert can help you monitor and alert for open-source vulnerabilities in real-time, allowing you to take proactive measures.