Malicious Code Injection in uarfug-miu-suatafi: A Threat to npm Packages
Summary
MAL-2025-169586: Malicious code in uarfug-miu-suatafi (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 'uarfug-miu-suatafi' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts designed to manipulate package metadata and inflate developer reputation scores, making them a significant risk for developers and users alike.
Vulnerability Detail
The vulnerability in 'uarfug-miu-suatafi' involves malicious code that modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior is intended to pollute the npm registry and can lead to the unintentional installation of compromised packages by developers. The origin of this vulnerability is linked to the tea.xyz token reward campaign, which exploits npm's package publishing mechanisms.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall uarfug-miu-suatafi
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 measure, avoid using the 'uarfug-miu-suatafi' package and consider replacing it with a trusted alternative. You can also monitor your project for any unauthorized changes to package.json and other critical files.
Conclusion
The 'uarfug-miu-suatafi' package poses a significant risk due to its malicious code that alters package metadata. It is crucial for developers to be vigilant and remove any affected packages from their projects. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities effectively.
See every vulnerability recorded for uarfug-miu-suatafi →
FAQ
The main risk is that it contains malicious code that can modify your project's package.json file, potentially leading to the installation of compromised packages.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. Simply upload your package-lock.json file to the Vulert playground at Vulert Scanner to check for vulnerabilities.
There is no patch available for this specific package. The recommended action is to uninstall it completely.
If you have installed the 'uarfug-miu-suatafi' package, you should uninstall it immediately using the command 'npm uninstall uarfug-miu-suatafi'.
Regularly update your dependencies, use tools like Vulert to monitor for vulnerabilities, and review the packages you include in your projects.