Malicious Code Injection in nudela-af-gaafofa: A Threat to npm Packages
Summary
MAL-2025-163720: Malicious code in nudela-af-gaafofa (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
nudela-af-gaafofa is an npm package that has been identified as part of a malicious campaign targeting the npm ecosystem. This package is involved in the tea.xyz token reward scheme, which aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The package's functionality is compromised due to its malicious intent, leading to potential security risks for developers and users relying on npm packages.
Vulnerability Detail
The vulnerability in nudela-af-gaafofa originates from its design to execute autopublish scripts that modify the package.json file. This includes removing private flags, altering version numbers, and generating random package names, which can lead to pollution of the npm registry. The malicious payload can significantly impact developers by compromising the integrity of their projects and potentially introducing security risks through unverified packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nudela-af-gaafofa
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-af-gaafofa package and replace it with a trusted alternative. Always validate the packages you include in your project by reviewing their source and ensuring they do not have any known vulnerabilities.
Conclusion
The nudela-af-gaafofa package poses a significant threat due to its malicious code designed to manipulate npm packages. It is essential for developers to remain vigilant, regularly audit their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, you can safeguard your projects from potential risks.
See every vulnerability recorded for nudela-af-gaafofa →
FAQ
nudela-af-gaafofa is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores.
The vulnerability can lead to the introduction of malicious code into your project, compromising its integrity and security.
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.
If you have installed nudela-af-gaafofa, you should uninstall it immediately and review your project's dependencies for any other potential vulnerabilities.
Yes, consider using well-known and trusted packages that serve similar functionalities without the associated risks.