Malicious Code Injection in uaragifa-ma-saf Package: npm Vulnerability Overview
Summary
MAL-2025-169530: Malicious code in uaragifa-ma-saf (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-saf package is part of the npm ecosystem, which is widely used for JavaScript package management. This package has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages. These packages are designed to inflate developer reputation scores for token rewards in the tea.xyz protocol. The malicious nature of this package lies in its ability to modify essential files and continuously republish variants, thereby polluting the npm registry.
Vulnerability Detail
The vulnerability in the uaragifa-ma-saf package originates from its association with the tea.xyz token reward campaign. It contains scripts that automatically generate and publish derivative packages with randomized names. The malicious payload alters the package.json file by removing private flags and changing version numbers, which can lead to unauthorized access and manipulation of the package. This behavior can severely compromise the integrity of the npm registry and affect developers relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall uaragifa-ma-saf
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-saf package and any of its derivatives. Additionally, consider using a tool like Vulert to monitor your project for vulnerabilities. You can check if your application is affected by this vulnerability using the Vulert playground at https://vulert.com/scanner without any signup.
Conclusion
The uaragifa-ma-saf package poses a significant risk due to its malicious code designed to manipulate the npm registry. It is essential for developers to be vigilant and remove this package from their projects. Utilizing tools like Vulert can help in monitoring and managing vulnerabilities effectively.
See every vulnerability recorded for uaragifa-ma-saf →
FAQ
The uaragifa-ma-saf package is an npm package that has been identified as part of a malicious campaign to exploit the npm registry.
This vulnerability can compromise the integrity of your project by allowing unauthorized modifications to your package.json and potentially introducing malicious code.
You should uninstall the uaragifa-ma-saf package immediately and check for any dependencies that may rely on it.
Yes, you can use Vulert to monitor your project for open-source vulnerabilities in real-time using just your package-lock.json.
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.