Malicious Code Injection in uaragifa-afat-usar Package: A Threat to npm Users
Summary
MAL-2025-169508: Malicious code in uaragifa-afat-usar (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-afat-usar package is part of the npm ecosystem, which is widely used for JavaScript package management. This package, like many others in the npm registry, is intended to facilitate the development and deployment of JavaScript applications. However, it has been identified as part of a malicious campaign that aims to exploit the npm registry by flooding it with derivative packages that can harm developers' reputations and the integrity of the registry itself.
Vulnerability Detail
The vulnerability in the uaragifa-afat-usar package originates from its association with a token reward campaign that utilizes malicious scripts to manipulate package metadata. These scripts, such as auto.js and autopublish.js, are designed to remove private flags from package.json, alter version numbers, and generate random package names. This behavior leads to the continuous republishing of variants, which can pollute the npm registry and potentially compromise the security of applications relying on these packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall uaragifa-afat-usar
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-afat-usar package and look for alternative packages that provide similar functionality without the associated risks. Always verify the integrity of packages before including them in your project.
Conclusion
The uaragifa-afat-usar package poses a significant threat to npm users due to its malicious code designed to manipulate package metadata and pollute the npm registry. It is crucial for developers to be vigilant, regularly update their dependencies, and utilize tools like Vulert to monitor for vulnerabilities.
See every vulnerability recorded for uaragifa-afat-usar →
FAQ
The uaragifa-afat-usar package is an npm package that has been identified as part of a malicious campaign to manipulate the npm registry.
This vulnerability can lead to the pollution of the npm registry, potentially compromising the security and integrity of applications that rely on affected packages.
You should uninstall the uaragifa-afat-usar package immediately and review your project's dependencies for any other potentially malicious packages.
You can use tools like Vulert, which monitors and alerts in real-time for open-source vulnerabilities using just your package-lock.json file.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.