Malicious Code Injection in mahnud-nofty-goga: A Threat to npm Ecosystem
Summary
MAL-2025-159090: Malicious code in mahnud-nofty-goga (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
mahnud-nofty-goga is an npm package that has been identified as part of a malicious campaign targeting the npm registry. This package is associated with the tea.xyz token reward initiative, which has been known to flood the npm ecosystem with harmful packages. The primary function of this package is to generate and publish derivative packages with randomized names, aimed at inflating developer reputation scores for token rewards.
Vulnerability Detail
The vulnerability in mahnud-nofty-goga stems from its malicious code that modifies the package.json file by removing private flags and altering version numbers. It generates random package names, often themed around Indonesian culture, and continuously republishes these variants to pollute the npm registry. This behavior not only compromises the integrity of the npm ecosystem but also poses risks to developers who may unknowingly install these malicious packages.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
npm uninstall mahnud-nofty-goga
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, you can avoid using the mahnud-nofty-goga package and any other packages associated with the tea.xyz token reward campaign. Monitor your package dependencies closely and consider using tools like Vulert to identify vulnerabilities in your project.
Conclusion
The mahnud-nofty-goga package poses a significant threat to the npm ecosystem due to its malicious code that modifies package metadata and floods the registry with harmful variants. It is essential for developers to be vigilant, remove affected packages, and utilize tools like Vulert to monitor for vulnerabilities in their projects.
See every vulnerability recorded for mahnud-nofty-goga →
FAQ
mahnud-nofty-goga is an npm package that has been linked to a malicious campaign aimed at inflating developer reputation scores through the creation of harmful derivative packages.
The vulnerability can lead to the installation of malicious code that compromises your project's integrity and security, potentially exposing sensitive data or allowing unauthorized access.
If you have installed mahnud-nofty-goga, you should immediately uninstall it using the command 'npm uninstall mahnud-nofty-goga' and review your project's dependencies for other vulnerabilities.
You can use tools like Vulert, which monitors your package-lock.json file to alert you in real-time for open-source vulnerabilities. You can also check your application against known vulnerabilities using the Vulert playground.
Currently, there is no patch for the mahnud-nofty-goga package itself, as it is recommended to remove the package entirely to mitigate the risk.