Malicious Code Injection in uaragifa-ma-safut Package: A Threat to npm Users
Summary
MAL-2025-169535: Malicious code in uaragifa-ma-safut (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 uaragifa-ma-safut package is part of a broader ecosystem within the npm registry, often associated with token reward campaigns. These packages are designed to manipulate developer reputation scores by automatically generating and publishing derivative packages. This behavior can lead to significant pollution of the npm registry, making it difficult for developers to find legitimate packages.
Vulnerability Detail
The vulnerability in the uaragifa-ma-safut package originates from its involvement in the tea.xyz token reward campaign. It contains malicious scripts that modify the package.json file by removing private flags, altering version numbers, and generating random package names. This not only compromises the integrity of the npm registry but also poses risks to developers who may unknowingly install these malicious variants, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall uaragifa-ma-safut
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 workaround, you can avoid using the uaragifa-ma-safut package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your package dependencies using tools like npm audit to identify and mitigate vulnerabilities.
Conclusion
The uaragifa-ma-safut package poses a significant threat to npm users due to its malicious code that manipulates package metadata and floods the npm registry. It is essential to remove this package from your projects and monitor your dependencies for vulnerabilities to maintain the security and integrity of your applications.
See every vulnerability recorded for uaragifa-ma-safut →
FAQ
The uaragifa-ma-safut package is an npm package involved in a token reward campaign that generates and publishes derivative packages to inflate developer reputation scores.
The malicious code can modify your package.json file, leading to potential security vulnerabilities and the installation of untrusted packages.
You should uninstall the uaragifa-ma-safut package immediately and check your project for any other potentially malicious packages.
You can use tools like Vulert, which monitors your package-lock.json file for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.