Malicious Code Injection in nudela-agaofkafsof-gafi Package
Summary
MAL-2025-163744: Malicious code in nudela-agaofkafsof-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-agaofkafsof-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 publication of derivative packages, which can inflate developer reputation scores for token rewards. However, it has been identified as containing malicious code that compromises the integrity of the npm registry.
Vulnerability Detail
The vulnerability originates from the package's malicious payload, which modifies the package.json file to remove private flags, alters version numbers, and generates random package names. This behavior leads to the continuous republishing of variants that pollute the npm registry, potentially affecting other developers and users relying on legitimate packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nudela-agaofkafsof-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-agaofkafsof-gafi package and look for alternative packages that provide similar functionality without the associated risks.
Conclusion
The nudela-agaofkafsof-gafi package poses a significant risk due to its malicious code that alters package metadata and floods the npm registry. Users are advised to uninstall the package and monitor their applications for vulnerabilities using tools like Vulert.
See every vulnerability recorded for nudela-agaofkafsof-gafi →
FAQ
It is an npm package that is part of a token reward campaign, designed to generate and publish derivative packages.
The package modifies package.json files, removes private flags, and continuously republishes variants to pollute the npm registry.
You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.
You should uninstall the package immediately using 'npm uninstall nudela-agaofkafsof-gafi' and look for alternatives.
Currently, there is no patch available for this specific package. The best course of action is to uninstall it.