Malicious Code Injection in nudela-aggff-gafi: A Threat to npm Ecosystem
Summary
MAL-2025-163747: Malicious code in nudela-aggff-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-aggff-gafi is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is designed to manipulate developer reputation scores through the automatic generation and publication of derivative packages. The malicious nature of this package poses significant risks to developers and the integrity of the npm ecosystem.
Vulnerability Detail
The vulnerability originates from a malicious payload embedded within the nudela-aggff-gafi package. This payload modifies the package.json file to remove private flags, alters version numbers, and generates random package names, leading to the continuous republishing of variants. This behavior not only inflates developer reputation scores but also pollutes the npm registry, making it difficult for legitimate packages to be discovered and used. The potential ramifications include compromised developer accounts, loss of trust in the npm ecosystem, and increased difficulty in managing dependencies.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall nudela-aggff-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 measure, avoid using the nudela-aggff-gafi package and monitor your project for any dependencies that may have been affected by this malicious package. Regularly audit your package-lock.json file to identify and remove any suspicious packages.
Conclusion
The nudela-aggff-gafi package poses a significant threat to the npm ecosystem due to its malicious behavior. It is crucial for developers to remain vigilant, regularly audit their dependencies, and utilize tools like Vulert to monitor for vulnerabilities. By taking proactive measures, developers can protect their projects and maintain the integrity of the npm registry.
See every vulnerability recorded for nudela-aggff-gafi →
FAQ
nudela-aggff-gafi is an npm package identified as part of a malicious campaign that modifies package metadata and inflates developer reputation scores.
The vulnerability can lead to the pollution of the npm registry, making it difficult to manage dependencies and potentially compromising your project's integrity.
You should uninstall the nudela-aggff-gafi package immediately using 'npm uninstall nudela-aggff-gafi' and audit your project for any other affected dependencies.
You can use tools like Vulert, which monitors your package-lock.json for open-source vulnerabilities in real-time without requiring code access or installation.
Yes, you can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without signing up.