Malicious Code Injection in uarug-miafai-suatafi Package
Summary
MAL-2025-169612: Malicious code in uarug-miafai-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 uarug-miafai-suatafi package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate token rewards for developers by generating and publishing derivative packages. However, it has been compromised, leading to significant security concerns.
Vulnerability Detail
The vulnerability stems from malicious code embedded within the uarug-miafai-suatafi package. This code is designed to modify the package.json file by removing private flags, altering version numbers, and generating random package names. The malicious payload continuously republishes these variants, polluting the npm registry and potentially compromising other applications that depend on these packages. This issue originated from a campaign aimed at inflating developer reputation scores for token rewards, making it a significant threat 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 uarug-miafai-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, you can avoid using the uarug-miafai-suatafi package and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The uarug-miafai-suatafi package poses a significant security risk due to embedded malicious code that alters package configurations and pollutes the npm registry. It is essential to remove this package and monitor your applications for vulnerabilities using tools like Vulert.
See every vulnerability recorded for uarug-miafai-suatafi →
FAQ
uarug-miafai-suatafi is an npm package that was part of a token reward campaign but has been compromised with malicious code.
The malicious code modifies your package.json, removes private flags, and can lead to the pollution of the npm registry, affecting other applications.
You should uninstall the package immediately and monitor for any updates or patches that may 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.
Regularly audit your dependencies, use tools like Vulert to monitor vulnerabilities, and stay updated on the latest security practices.