Malicious Code Injection in nudela-afogsaf-gafi: A Threat to npm Packages
Summary
MAL-2025-163731: Malicious code in nudela-afogsaf-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
nudela-afogsaf-gafi is an npm package that has been identified as part of a malicious campaign targeting the npm ecosystem. This package is associated with the tea.xyz token reward initiative, which aims to inflate developer reputation scores through the automatic generation and publication of derivative packages. The malicious nature of this package compromises its integrity and poses risks to users who may unknowingly incorporate it into their projects.
Vulnerability Detail
The vulnerability in nudela-afogsaf-gafi stems from its inclusion in a campaign that utilizes autopublish scripts to create and publish numerous derivative packages with randomized names. This behavior modifies the package.json file by removing private flags, altering version numbers, and generating random package names, ultimately leading to pollution of the npm registry. The ramifications include potential security risks for developers who may inadvertently use these compromised packages, as well as reputational damage to the npm ecosystem.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nudela-afogsaf-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 workaround, you can avoid using the nudela-afogsaf-gafi package altogether. If it is already in use, consider removing it from your package.json and running npm install to clean up your dependencies. Additionally, you can monitor your project for vulnerabilities using tools like Vulert, which can alert you in real-time for open-source vulnerabilities without requiring code access.
Conclusion
The nudela-afogsaf-gafi package poses a significant risk due to its malicious code and association with a campaign designed to manipulate npm's ecosystem. It is crucial for developers to be vigilant about the packages they use and to take proactive steps to secure their projects by removing affected packages and utilizing monitoring tools like Vulert.
See every vulnerability recorded for nudela-afogsaf-gafi →
FAQ
nudela-afogsaf-gafi is an npm package that has been identified as part of a malicious campaign aimed at inflating developer reputation scores through the automatic generation of derivative packages.
The vulnerability can lead to the inclusion of malicious code in your project, potentially compromising its security and integrity.
You should remove the nudela-afogsaf-gafi package from your project and monitor for any updates or patches that may address the issue.
You can use tools like Vulert, which allows you to monitor and alert for open-source vulnerabilities in real-time using just your package-lock.json.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.