Malicious Code Injection in uafagarug-mide-fdtut: A Threat to npm Ecosystem
Summary
MAL-2025-169435: Malicious code in uafagarug-mide-fdtut (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 'uafagarug-mide-fdtut' is part of the npm ecosystem, which is widely used for JavaScript package management. This package is linked to the tea.xyz token reward campaign, which has been known to flood the npm registry with malicious packages. These packages often contain scripts that automate the generation and publication of derivative packages, potentially compromising the integrity of the npm registry and affecting developers' reputations.
Vulnerability Detail
The vulnerability in 'uafagarug-mide-fdtut' originates from its association with malicious scripts designed to manipulate package metadata. These scripts modify the package.json file by removing private flags, altering version numbers, and generating random package names. This behavior can lead to the pollution of the npm registry, making it difficult for developers to find legitimate packages and potentially exposing them to further security risks.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall uafagarug-mide-fdtut
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 package by removing it from your dependencies and replacing it with a trusted alternative. Regularly audit your npm packages using tools like npm audit to identify and address vulnerabilities.
Conclusion
The 'uafagarug-mide-fdtut' package poses a significant risk due to its malicious code that can compromise the npm ecosystem. It is essential for developers to take immediate action by removing the package and monitoring their dependencies for vulnerabilities. Utilizing tools like Vulert can help in maintaining the security of your applications.
See every vulnerability recorded for uafagarug-mide-fdtut →
FAQ
The vulnerability can lead to the pollution of the npm registry, making it difficult for developers to find legitimate packages and potentially exposing them to further security risks.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.
If you have installed the package, it is crucial to uninstall it immediately and check for any other affected packages in your project.
Yes, consider using well-established packages that serve similar functionalities but have a proven track record of security.
Regularly audit your dependencies using tools like npm audit, and stay informed about the latest security advisories related to the packages you use.