Malicious Code Injection in nudela-agaaff-gafi Package - npm Vulnerability
Summary
MAL-2025-163736: Malicious code in nudela-agaaff-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-agaaff-gafi package is part of the npm ecosystem and is associated with the tea.xyz token reward campaign. This package is designed to facilitate the automatic generation and publishing of derivative packages, which can inflate developer reputation scores. However, it has been identified as containing malicious code that compromises its integrity and the security of the npm registry.
Vulnerability Detail
The vulnerability in the nudela-agaaff-gafi package originates from its design to include autopublish scripts that modify the package.json file. These modifications remove private flags, alter version numbers, and generate random package names, leading to a polluted npm registry. The malicious payload can potentially allow unauthorized access to sensitive data and disrupt 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-agaaff-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 avoid using the nudela-agaaff-gafi package and look for alternative packages that provide similar functionality without the associated risks. Additionally, regularly audit your package-lock.json file to identify and remove any malicious packages.
Conclusion
The nudela-agaaff-gafi package poses a significant security risk due to its malicious code that modifies package.json files and pollutes the npm registry. It is crucial to remove this package from your projects and monitor your dependencies for vulnerabilities to ensure the security and integrity of your applications.
See every vulnerability recorded for nudela-agaaff-gafi →
FAQ
It is an npm package associated with the tea.xyz token reward campaign, designed to automate the generation and publishing of derivative packages.
The vulnerability can lead to unauthorized modifications in your package.json file, potentially exposing sensitive data and affecting the integrity of your application.
You should uninstall the nudela-agaaff-gafi package immediately and check for any other affected packages in your project.
You can use tools like Vulert, which monitors and alerts you in real-time for open-source vulnerabilities using 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.