Malicious Code Injection in nudela-aahaf0gf-gaa Package
Summary
MAL-2025-163707: Malicious code in nudela-aahaf0gf-gaa (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-aahaf0gf-gaa 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 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 malicious code embedded in the nudela-aahaf0gf-gaa package. This code modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of these variants. This behavior not only pollutes the npm registry but also poses a risk to developers who may unknowingly use these compromised packages, potentially leading to security breaches in their applications.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nudela-aahaf0gf-gaa
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 malicious package by using npm's package-lock.json file to monitor dependencies. Ensure that your project does not include nudela-aahaf0gf-gaa by checking your package-lock.json file for any references to it.
Conclusion
The nudela-aahaf0gf-gaa package contains malicious code that compromises the npm registry and poses a risk to developers. It is crucial to remove this package from your projects and monitor for any updates or patches. Utilizing tools like Vulert can help you stay informed about vulnerabilities in your dependencies.
See every vulnerability recorded for nudela-aahaf0gf-gaa →
FAQ
It is an npm package associated with a token reward campaign that has been identified as containing malicious code.
The malicious code modifies your package.json file and can lead to the republishing of compromised packages, which may introduce security vulnerabilities.
You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without any signup.
You should uninstall the nudela-aahaf0gf-gaa package immediately and check your package-lock.json file for any lingering references.
Currently, there is no patched version available. The best course of action is to remove the package and monitor for updates.