Malicious Code Injection in nudela-aoaf-gafi Package
Summary
MAL-2025-163748: Malicious code in nudela-aoaf-gafi (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 nudela-aoaf-gafi package is part of the npm ecosystem, often used for various JavaScript applications. It is associated with the tea.xyz token reward campaign, which has been known to flood the npm registry with numerous packages. This package, like others in the campaign, is designed to manipulate developer reputation scores by generating and publishing derivative packages with randomized names.
Vulnerability Detail
The vulnerability in the nudela-aoaf-gafi package stems from its malicious code that modifies the package.json file to remove private flags and alters version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior can lead to significant security risks, including the potential for unauthorized access to sensitive data and the compromise of 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 nudela-aoaf-gafi
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 prevent the installation of this package by using npm's package-lock.json to monitor dependencies. If you are using Vulert, you can check your application for vulnerabilities without any installation. Use the Vulert playground at https://vulert.com/scanner to see if your application is affected by this vulnerability.
Conclusion
The nudela-aoaf-gafi package contains malicious code that poses significant risks to applications using it. It is crucial to uninstall this package and monitor your dependencies for vulnerabilities. Utilizing tools like Vulert can help maintain the security of your applications.
See every vulnerability recorded for nudela-aoaf-gafi →
FAQ
It is an npm package that is part of a token reward campaign, known for flooding the npm registry with malicious packages.
The vulnerability can lead to unauthorized access and compromise the integrity of your application by introducing malicious code.
You should uninstall the nudela-aoaf-gafi package immediately using 'npm uninstall nudela-aoaf-gafi'.
You can use Vulert, which monitors your package-lock.json for vulnerabilities in real-time without requiring code access.
Yes, you can use the Vulert playground at Vulert Scanner to check for vulnerabilities without any signup.